@reviewflow/app 6.25.0 → 6.27.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/build/index-node.mjs +477 -27
- package/client/_expo/static/css/global-5d78cd7d74c13d3efa0ebc9c34bf74ce.css +2 -0
- package/client/_expo/static/js/web/{AppEntry-17db9b09237740c52980adeecf895fa5.js → AppEntry-8335bf1179b49f9739abf502e3473765.js} +298 -274
- package/client/_expo/static/js/web/{__common-a229c1110a11f9f5226aac4c3a888034.js → __common-c6d62ed879da80e201469ad08f57a7b3.js} +394 -385
- package/client/_expo/static/js/web/{abap-df8e603fa29bd1161ad0c894cecf4c84.js → abap-4fe0e7b98d21de098f288929baf0ec21.js} +1 -1
- package/client/_expo/static/js/web/{actionscript-3-c21d4f3e943dd47846cdd4e635f2f4d5.js → actionscript-3-8b370d351bdeb01d3992e392cbb2fec2.js} +1 -1
- package/client/_expo/static/js/web/{ada-c52e08d1c2f62f97aee3dc331b7695c1.js → ada-409ab0ae135850f06d23d9b1bca24bc8.js} +1 -1
- package/client/_expo/static/js/web/{ahk-9ceee3c75c0d7a609ee6bfd01c80d436.js → ahk-360289a7120a1defa7e8603167aa0f63.js} +1 -1
- package/client/_expo/static/js/web/{ahk2-eb3d4aa8b16ea2b4a0b623d9379d741f.js → ahk2-5345220889a20c12d5fc00295126c0be.js} +1 -1
- package/client/_expo/static/js/web/{andromeeda-0c4cfd189b2a5858c5006455e7996492.js → andromeeda-3468a36078d733271be94aaaf0e4e12c.js} +1 -1
- package/client/_expo/static/js/web/{angular-ts-0bae9322cf875e7ba879cbeecb86727f.js → angular-ts-9b72d6d2358f68d4eed91b9cb74991b6.js} +3 -3
- package/client/_expo/static/js/web/{apache-fbee2c6ce8c5350b117dff3fa453fbbc.js → apache-caaa3da61117f7c20a407998843b426d.js} +1 -1
- package/client/_expo/static/js/web/{apex-3b34e8e719c5f3179587981e9cac0cf9.js → apex-2953772baa8337f1a114f5dc0cfe528d.js} +1 -1
- package/client/_expo/static/js/web/{apl-48c68c61a23e3d6e63a08babffbf00a7.js → apl-d1820db85aa32d42406eec6c6759451c.js} +1 -1
- package/client/_expo/static/js/web/{applescript-92008435b07703478624b1b396a3a1b0.js → applescript-80f7d5ac0d0d5043d16c8ce372686fdf.js} +1 -1
- package/client/_expo/static/js/web/{ara-0339aa99af428e930516e9c6eb2fefb9.js → ara-cea5e4491e45d259aba0e36cdecb62d1.js} +1 -1
- package/client/_expo/static/js/web/{asciidoc-7fc416412bb9b0ad22b6c70c64e11cfc.js → asciidoc-d518d84bad8473f4b0d746dbebd11622.js} +1 -1
- package/client/_expo/static/js/web/{asm-f89243ecfb0cce03f6c6ec6bbdbe5f4f.js → asm-02375d2a5bff5da2e1329f7781341bf5.js} +1 -1
- package/client/_expo/static/js/web/{astro-74217750ff01ac2a47a5adc699de418b.js → astro-ce13a9de419152fd247b74a77406ed43.js} +1 -1
- package/client/_expo/static/js/web/{aurora-x-640c33a2258f29ac211b5dcac83d6ff5.js → aurora-x-30af0b77aab87dd59d684e3092e5196f.js} +1 -1
- package/client/_expo/static/js/web/{awk-5107cb0ed1b2e4114476189ea54f9ec0.js → awk-ca3b182a267adb0f6c9979d1f55527dc.js} +1 -1
- package/client/_expo/static/js/web/{ayu-dark-df205d6df11fd1d3bbb35667e3613431.js → ayu-dark-8adc90bda92676f9d5513250187ac297.js} +1 -1
- package/client/_expo/static/js/web/{ayu-light-207208a0af25b22a24823fdf8b2419cb.js → ayu-light-17885913e6b3c98f87a74ad3585ecf57.js} +1 -1
- package/client/_expo/static/js/web/{ayu-mirage-514b0687fea9756250a854a02b27fe20.js → ayu-mirage-5cad13ca4e5f10e9b179c424b286cc46.js} +1 -1
- package/client/_expo/static/js/web/{ballerina-4f59900af55bfdfefe3c77f16f8445c9.js → ballerina-3e475ceea53ae8ab2ee820e75afaa486.js} +1 -1
- package/client/_expo/static/js/web/{beancount-6e590e684619037afca6ae84f5f59c4b.js → beancount-c64497767f33cc308791d8f6cd86696d.js} +1 -1
- package/client/_expo/static/js/web/{berry-02f9a11813bd78276082a1ee9e7e0271.js → berry-f0926df7e239892dfeef674f55369ed7.js} +1 -1
- package/client/_expo/static/js/web/{bicep-686cb67da63b2984bc3686548ef1c726.js → bicep-ad714c826c49ee79d49aef643821b52d.js} +1 -1
- package/client/_expo/static/js/web/{bird2-9a2eaa50eea45d4ef3d3fdc90a1b6076.js → bird2-88b08da96d8ae1e89def954810784c7a.js} +1 -1
- package/client/_expo/static/js/web/{blade-cb85e775d1acdd43b795bd9a368dae6e.js → blade-c0355d5637437b15c482f2c9ac5c0287.js} +1 -1
- package/client/_expo/static/js/web/{bsl-6132747a29bc49fb593786756b59e2d0.js → bsl-e7a4d8a04b9dc660d9af311c1b9192ee.js} +1 -1
- package/client/_expo/static/js/web/{c3-fe39148be0597b005f9a1cf05cc3aed7.js → c3-6f019f0749c1395fa834b6fa6a8a5d2e.js} +1 -1
- package/client/_expo/static/js/web/{cadence-2d36d4b2c9f54d0e71382b2700b5b047.js → cadence-6ca22355ac0bff24b8b62174901942ff.js} +1 -1
- package/client/_expo/static/js/web/{cairo-31cfd007b807e03f0667ddcb8a3a2ab5.js → cairo-20e4c431c798ee32eb153bb9b448b873.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-frappe-8f443c9f629d3116618724ecf5c85606.js → catppuccin-frappe-47bf06b0822ea32347d3c4c9e3bc7720.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-latte-4ed931439b72d33306318d8e34bcb87a.js → catppuccin-latte-52c56ab905aa65d9c13e9667266c67fa.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-macchiato-9183bf25ab1a11e53097b9cd3feec650.js → catppuccin-macchiato-320fced1d4171692e37bf2e7b5d369c5.js} +1 -1
- package/client/_expo/static/js/web/{catppuccin-mocha-b58d3a71385cd7f641d5ee2a12747977.js → catppuccin-mocha-cb98e5ac190aefb275adc323f0765da4.js} +1 -1
- package/client/_expo/static/js/web/{chapel-5327d6237d842395dbde4fc21ac83a02.js → chapel-c187ad43e349fb684633d7c30ca395ef.js} +1 -1
- package/client/_expo/static/js/web/{clarity-dc9d11ab59ffa92a6dbd935dd7ff0525.js → clarity-ba21cf1e6f010c2e54f527725c291c17.js} +1 -1
- package/client/_expo/static/js/web/{cobol-ca2b44632070a86c33173fa484724bdc.js → cobol-d348aa8865f5b793b9ca2a713e22d36a.js} +1 -1
- package/client/_expo/static/js/web/{codeowners-9baf11ba39b84f5e20e8ef1bce4fc059.js → codeowners-0b5ef3cfb50283890f675a17048822b9.js} +1 -1
- package/client/_expo/static/js/web/{codeql-2d5d42d1e8fc98ce64e45ef9507ba2e6.js → codeql-dce6101b71a73bd86612eda44df9224d.js} +1 -1
- package/client/_expo/static/js/web/{common-lisp-e360f08ed2da3b37582088b413a428ed.js → common-lisp-d60cd64fa3adabdea2b1b19e9137d8e6.js} +1 -1
- package/client/_expo/static/js/web/{coq-2400ab3ca38eb6760e18793c7bf8efcd.js → coq-b51cf2a751aa35da83957beb62b1d8f2.js} +1 -1
- package/client/_expo/static/js/web/{crystal-8b0822cefafd1526cbca80d2b5abe119.js → crystal-147218c71f85c076a8be8ff1ce771230.js} +1 -1
- package/client/_expo/static/js/web/{cue-9394d983c39094a38de98c82a4b83bbb.js → cue-2fd84956977669039d50f9b3048fe686.js} +1 -1
- package/client/_expo/static/js/web/{cypher-3b5f80344fbdb64af01610e18ceff981.js → cypher-2eadacda54d2554756bd7191d63f968a.js} +1 -1
- package/client/_expo/static/js/web/{d-f482975607f010aff8ba5b523d81043c.js → d-763a7dc75194b8ec4e667f738948dd48.js} +1 -1
- package/client/_expo/static/js/web/{dark-plus-a7e538ed154d7f58f418c1037c642e21.js → dark-plus-38dc9bd12a3f4efaf02d2a735cbbcfe5.js} +1 -1
- package/client/_expo/static/js/web/{dax-4a58beb3b76d04a29d16472c77f1ed4b.js → dax-b30cea36e38c7b3c72e41605466e3e68.js} +1 -1
- package/client/_expo/static/js/web/{desktop-63a905c342d34a676b3c7717610531c5.js → desktop-59e100d2ec1245163c3f287a4bcc05f1.js} +1 -1
- package/client/_expo/static/js/web/{diff-theme-preview-c9227126480ef59705dc607f1f8e384b.js → diff-theme-preview-46435a4e0a6c8354048ec3522c4be537.js} +1 -1
- package/client/_expo/static/js/web/diff-viewer-b0f0e29d1d9f21a7e35b67f1a9f7f1c6.js +1 -0
- package/client/_expo/static/js/web/{diff-worker-70234e325b1c1500b5f32495b077685c.js → diff-worker-e3ef1ff1769be8a2463bf5c5d6e6611a.js} +5 -5
- package/client/_expo/static/js/web/{dotenv-90778746ec7c21651b58f0bf064ead98.js → dotenv-bdc9b412b22b027a4539d47cbdf23496.js} +1 -1
- package/client/_expo/static/js/web/{dracula-1e521e97ea2f127d617b5a4e50251cae.js → dracula-7bd17a972569df39072f783fc23b1b60.js} +1 -1
- package/client/_expo/static/js/web/{dracula-soft-072301cf0936d4c9c984aee24d07dd21.js → dracula-soft-f31c0e24721697a087e2862f7cb2c64c.js} +1 -1
- package/client/_expo/static/js/web/{dream-maker-7b08fee0accb0e107449af8a4654839a.js → dream-maker-055868b7e7b591809507afa922d2b9b8.js} +1 -1
- package/client/_expo/static/js/web/{edge-8bc73985f1dd5a7916edf0fa248e164e.js → edge-4a63ddc2f8d4e6edfaedbbf59db431d3.js} +1 -1
- package/client/_expo/static/js/web/{elm-a180cf62c6e5efa8336aac94f7f674b4.js → elm-850127630928f4eb4ef4d3fe52ece376.js} +1 -1
- package/client/_expo/static/js/web/{emacs-lisp-e128291c148876f7dd5549aecba8a68d.js → emacs-lisp-d19be85f9edc4ba71344a7c080ee4877.js} +1 -1
- package/client/_expo/static/js/web/{erb-92d9a6a3c88badb76aa0920a30d7cd92.js → erb-dab012381cc202e00c1853bac8a7331a.js} +1 -1
- package/client/_expo/static/js/web/{everforest-dark-48e4f9dfec1d82f63b1516f59696e264.js → everforest-dark-67d95a32087ecf5f06151bb7c4409c4e.js} +1 -1
- package/client/_expo/static/js/web/{everforest-light-7ad1adaa47785656e79a6875116084de.js → everforest-light-6c77581ac4647716a36d6198ef4e07eb.js} +1 -1
- package/client/_expo/static/js/web/{fennel-c77f797098fb7582de4fb96470da91a6.js → fennel-2c15d8452cf95543297b5d8cdfefe2c2.js} +1 -1
- package/client/_expo/static/js/web/{fish-500cac3a230e581075bbb0a949f6bdb3.js → fish-37986ac4130578d236c93e7d92b71006.js} +1 -1
- package/client/_expo/static/js/web/{fluent-619078f15d73a1a38a415f6f9a96f9e5.js → fluent-e7a892f444b60a8d744d9dbc2302c113.js} +1 -1
- package/client/_expo/static/js/web/{fortran-fixed-form-9bfac86b66246d8818eba7077e5a2109.js → fortran-fixed-form-db4ebc3e239f4bb474b494b67e4cbe48.js} +1 -1
- package/client/_expo/static/js/web/{gdresource-3232406db179662be374b5cf32dbd90d.js → gdresource-b91ee658b38f85b6e152001380cd9606.js} +1 -1
- package/client/_expo/static/js/web/{genie-4a369ac7d3ae93a2fd2c4c58394dc139.js → genie-b4cfba91cd32111e2892472efec200a0.js} +1 -1
- package/client/_expo/static/js/web/{gherkin-a2eddd2fabe8db965a88faf410e975c6.js → gherkin-2d45522ff8729a1a6ea8920ef0eb8b76.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-default-9a95e99155d92c5bad455f3637aac0e0.js → github-dark-default-ca8331083ab3091f6776c8cf3e2b1cb1.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-dimmed-70f370c6e9845140fcca3ff6bdf29095.js → github-dark-dimmed-6c49998f259d16ee2de084d366dc3447.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-55e6ec51c77c75fd1fe2c452b4522831.js → github-dark-f3af1bc419c5abdd60fe2e75b2ccf72c.js} +1 -1
- package/client/_expo/static/js/web/{github-dark-high-contrast-65896af6db1c7b8848df6e57d3ae72b0.js → github-dark-high-contrast-e6bb063b86f357a4437e98df2259d2d5.js} +1 -1
- package/client/_expo/static/js/web/{github-light-7ed1b6a767bb54404e2d718f38ad4d97.js → github-light-92c2f523c0998886feda6a126d7131e8.js} +1 -1
- package/client/_expo/static/js/web/{github-light-default-a411fd333ddd09b17a92763d8a0c710f.js → github-light-default-f854a6c25b1cb9a2bd0e1d767fa6ef5f.js} +1 -1
- package/client/_expo/static/js/web/{github-light-high-contrast-cfb5ef5dea35163c3cf9096a5f2550d5.js → github-light-high-contrast-cafab2347e92dd8d05889caaea09c079.js} +1 -1
- package/client/_expo/static/js/web/{gleam-6e7a0fbdf2ef3af2f74ba2a289646667.js → gleam-19ef468ae81b1e54d6edd31c2f63f332.js} +1 -1
- package/client/_expo/static/js/web/{glimmer-js-b201b0d52c2104c86d33d4481b4acbe0.js → glimmer-js-26d536f10e879517640ff72f5cc42d12.js} +1 -1
- package/client/_expo/static/js/web/{glimmer-ts-bbbffff6a8156d82390a611624d28620.js → glimmer-ts-7b6b7e06ae6a141eeb4636b0ec7a26dc.js} +1 -1
- package/client/_expo/static/js/web/{gn-7396a6a85ab275f01a27713f2114384b.js → gn-3d58134436a0a055351fc028b31dfa39.js} +1 -1
- package/client/_expo/static/js/web/{gnuplot-d7958bcdc22111e4adad0bc118f126d5.js → gnuplot-5dd81175708f38f67504960a8bcd8fe2.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-dark-hard-8e8c1b9b53c2dc5435ffa622b26ac462.js → gruvbox-dark-hard-eb056c36828f2c021dadc27561872a7a.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-dark-medium-589693da088c4c6933160d683ddf335d.js → gruvbox-dark-medium-5a2290adfe1b8493c4a3aa64dc90bd06.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-dark-soft-eb176dffc2716f452bc0f6127a202f33.js → gruvbox-dark-soft-e9f3ac06b067069a91f7ea3b611db2f6.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-light-hard-4c9f38b7c44906787dec3b6ae49dc8e2.js → gruvbox-light-hard-870c3b492716d009f88cf9ac3301c7ec.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-light-medium-09723a187d7ca2a89a5ca655077fd0aa.js → gruvbox-light-medium-b77e2e3612176a74e3ca72f0407d0aea.js} +1 -1
- package/client/_expo/static/js/web/{gruvbox-light-soft-8fa4584951d960e5db514dcf6095dca6.js → gruvbox-light-soft-68cbe74dfe267c05574a090010dfe75b.js} +1 -1
- package/client/_expo/static/js/web/{hack-71166fae8f80a6673870e088a6f8b4f8.js → hack-84efd86a02ae7d9a993ae445e136dd9d.js} +1 -1
- package/client/_expo/static/js/web/{haskell-a07434fb3132db42641441d25eb8940e.js → haskell-0d4f8e8ba1c41067d956843aa440e953.js} +1 -1
- package/client/_expo/static/js/web/{hcl-d5081807f938d995a14825fdfacf4ae1.js → hcl-343dead7d8e8f98376dff03c88b74184.js} +1 -1
- package/client/_expo/static/js/web/{hjson-77681448ab49125a5983c5e80049db7e.js → hjson-933f277967bc7d97f04de651bbb53814.js} +1 -1
- package/client/_expo/static/js/web/{horizon-101ff8824156955c3788f10f25de795d.js → horizon-52dbbbf2f964902158cfed969886f13b.js} +1 -1
- package/client/_expo/static/js/web/{horizon-bright-e4256129ab2df6dffa3b1d38a41c821e.js → horizon-bright-0975d375b97f43b8022465e187073320.js} +1 -1
- package/client/_expo/static/js/web/{houston-f20f1eb7863d9ec8224f4cb67e81b428.js → houston-fae6d306389c4273fb1e125d4ec49fea.js} +1 -1
- package/client/_expo/static/js/web/{http-8273bed0d695a66b80933572838787c9.js → http-973fd1206c1cbe1448cd672d938c1862.js} +1 -1
- package/client/_expo/static/js/web/{hurl-17cb1a99e7b0a772ef2adb8a3e574914.js → hurl-1ccaefca16bdc5044d26f938ae0957a9.js} +1 -1
- package/client/_expo/static/js/web/{hxml-1c093244b5df141cc4da98219a484127.js → hxml-d548f76aa81462b973e84adf0da30cc8.js} +1 -1
- package/client/_expo/static/js/web/{hy-cb7d706c027fc438d125e03812a0e3f2.js → hy-7e0f15a042ac478f014ccc49b75eee1c.js} +1 -1
- package/client/_expo/static/js/web/{imba-e71eacabaa3250c2ce2f04223dbec8bf.js → imba-7461898aeafcf3c8f6a4cc3562feb972.js} +1 -1
- package/client/_expo/static/js/web/{jinja-fee492db3b49a93b38bf4b991c87f1a0.js → jinja-f8466561a68d844a48f639304bf0ba8c.js} +2 -2
- package/client/_expo/static/js/web/{jison-f7a3ad3228b14dc1e9b44668e1311646.js → jison-3a4ee8a008d256ab2884ce335bd69160.js} +1 -1
- package/client/_expo/static/js/web/{json5-81ad1c525ad048b21570f85dfaaf2366.js → json5-ad06dd26b5d85b80c5679f0decbeaf64.js} +1 -1
- package/client/_expo/static/js/web/{jsonl-3ddff8e61b69f0aaafe6efba19976161.js → jsonl-9e8b8ce75f24b5a4d2f8e046d27b57f8.js} +1 -1
- package/client/_expo/static/js/web/{jsonnet-f1e38c886593cf8e4ca75bee3e05b2aa.js → jsonnet-bf93da732ca9b048d652d809356402e0.js} +1 -1
- package/client/_expo/static/js/web/{jssm-0a783fc84393abe6c83946f6ea060790.js → jssm-18eb4accdd7529414d9d937d8a5ffb96.js} +1 -1
- package/client/_expo/static/js/web/{just-5c41420c87fe5b6f55e8c6295c90e945.js → just-493779a748fc02c7267b10b25e78a220.js} +1 -1
- package/client/_expo/static/js/web/{kanagawa-dragon-709d225b688d1046eb698ea8b94072c4.js → kanagawa-dragon-f6b833005ad0c7299fe68c99397cb8d3.js} +1 -1
- package/client/_expo/static/js/web/{kanagawa-lotus-89cd670bbab9e6a41aed71a14984dc5a.js → kanagawa-lotus-8141290985e8d93e84cbda87e9883309.js} +1 -1
- package/client/_expo/static/js/web/{kanagawa-wave-fc5be10165df1968e2148b9136c6ccce.js → kanagawa-wave-70c5884a1dce72132b90acdb72af321b.js} +1 -1
- package/client/_expo/static/js/web/{kdl-447428e8d1b4d43f86e569631624ad8b.js → kdl-5b7fc395a29a6c2c2391876baae8ac5b.js} +1 -1
- package/client/_expo/static/js/web/{kotlin-fffde2cffe6f5298e2853b17302c1156.js → kotlin-fc1cd7f253fcc21fca656724d7e33eb6.js} +1 -1
- package/client/_expo/static/js/web/{kusto-d1247608d8870735c6c9da5d2dc511b0.js → kusto-c24c0a94b03bbbbf00aa578c77bbe330.js} +1 -1
- package/client/_expo/static/js/web/{laserwave-3fac33ed71c50f622dfe563d98651250.js → laserwave-481a301c8e07f24d60e66ddd28339869.js} +1 -1
- package/client/_expo/static/js/web/{lean-6bdc20d02b5983ec5750020911647ba7.js → lean-5ac317ba6cc603ad7edc682648146a89.js} +1 -1
- package/client/_expo/static/js/web/{light-plus-e657f61c43141947e84b0fbc20b8b5e9.js → light-plus-5c550b940503e6ca83fd09f399722fc6.js} +1 -1
- package/client/_expo/static/js/web/{liquid-1cd6223178098410fc529d341c8eeeb1.js → liquid-92ef52448c947f94a32d895e5f1528ee.js} +1 -1
- package/client/_expo/static/js/web/{llvm-9abe0b05d93c73c5f0224c617c5f9e2a.js → llvm-69aefa481a3bc43cec56e3f032679711.js} +1 -1
- package/client/_expo/static/js/web/{logo-5a163ecd6d626f8e5ed8a4077579d3d8.js → logo-47b1c65060a41f5983450d635dbf7adb.js} +1 -1
- package/client/_expo/static/js/web/{luau-12bf324f86fa7baf668cbc63076fb183.js → luau-7c710f6822c7c3c41b8dfdf8095692a2.js} +1 -1
- package/client/_expo/static/js/web/{marko-553ea83ca2f36381d39a8bda41e54311.js → marko-08b7960a50ce159cbfc35b18339e0482.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-5166d33f1b5a30ebaf5d3d3290aa1232.js → material-theme-199c983eeab28e19d95c7254adee2971.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-darker-13f4ba99d1d561fde3f1b28a6bc7c10a.js → material-theme-darker-e27a19b508ea5edb4a5a00e8d3936476.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-lighter-f952f8c45b9f3191721ba8203239794f.js → material-theme-lighter-3f00d38c7ffbe61b8842104a155a9885.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-ocean-7ce75ade4179e37d83b03cd0b29dd56b.js → material-theme-ocean-77acf823c64874bec57d8dfd865976ee.js} +1 -1
- package/client/_expo/static/js/web/{material-theme-palenight-335619fdadb328b9afa23ce676bf9c48.js → material-theme-palenight-a4ac2d218c8a1bf377036511d3d9df6e.js} +1 -1
- package/client/_expo/static/js/web/{matlab-84461aabc57774a506c3c4b46fe13f5c.js → matlab-2ddbbf699fe64e1ad6c23feba6b7d72e.js} +1 -1
- package/client/_expo/static/js/web/{mdc-a0cd6f70fa5ec2b4ef376f46c6b4c8d6.js → mdc-8344a6677aedf23fdb8d9c3b4d70656e.js} +1 -1
- package/client/_expo/static/js/web/{mdx-0f83459c6aa0863193f2da1fc04b2b20.js → mdx-c1baf7ef34fe547dd5c10bf2b0783a29.js} +1 -1
- package/client/_expo/static/js/web/{mermaid-37a6e7ea3261ee8acbab39fd19a07f8d.js → mermaid-e76e2ae85536e1fb171b1fd8d2c75deb.js} +1 -1
- package/client/_expo/static/js/web/{min-dark-367287bd7dd58074d7d3f218cac750e3.js → min-dark-9797f326140a3b58df9e1473cb6568eb.js} +1 -1
- package/client/_expo/static/js/web/{min-light-aaa01f450a773f07b82c41948aa41812.js → min-light-a89588101acb8536859d8f788dd3135e.js} +1 -1
- package/client/_expo/static/js/web/{mipsasm-33ee071bad6f1bf17c710ccdc4e46d38.js → mipsasm-ff0b7c4163103e5b44bc71d1585bae8e.js} +1 -1
- package/client/_expo/static/js/web/{mojo-aa8f3aaf797d33752dfa129c28a6b8e2.js → mojo-ce0b1e0aa6997e06e098702822dd0ac7.js} +1 -1
- package/client/_expo/static/js/web/{monokai-e2a95f3ea27155cd88e1858efa8dd33c.js → monokai-170ae1aa83d4d11c7cdaad402ba8069b.js} +1 -1
- package/client/_expo/static/js/web/{moonbit-78e32abe6cc7c881d341b9eda1c5eb39.js → moonbit-88dd0636fcc0d827d671e9869c881faf.js} +1 -1
- package/client/_expo/static/js/web/{move-76c6a980b5c687d8cc16d2007612c2f3.js → move-33df7b8766fd9651730e95a10a585f50.js} +1 -1
- package/client/_expo/static/js/web/{narrat-26dc3699ad303231b9ab4409cb309e6b.js → narrat-f41213535c46de470e08abf0b1cb5a4f.js} +1 -1
- package/client/_expo/static/js/web/{nextflow-a109a2a004267d44bd1ef72a2b006aa4.js → nextflow-d2b458ff76d04fcbde4418991ab6a2fd.js} +1 -1
- package/client/_expo/static/js/web/{nginx-ea805a98f1af2900441de4c0994715a0.js → nginx-8f90032d1f0717985af456c188aa6ced.js} +1 -1
- package/client/_expo/static/js/web/{night-owl-65ad45c55948d35b562331b8274d1941.js → night-owl-2ab5f834328ce35e675dc2ac0834fda7.js} +1 -1
- package/client/_expo/static/js/web/{night-owl-light-3282d47289b108e80ffea5afaa92bb84.js → night-owl-light-cbaad881122fde4e3bb786e22a03e6d0.js} +1 -1
- package/client/_expo/static/js/web/{nix-9ba7fca1cb7494643cfb4660fbbb91cb.js → nix-502ce4e9feb2e01832a832fb7cab916b.js} +2 -2
- package/client/_expo/static/js/web/{nord-8f491dcb7d9c99032fd582cc7e4e3597.js → nord-75d88e0edcbaec32bfacdacfdff4a2b2.js} +1 -1
- package/client/_expo/static/js/web/{nsis-e29c8b296a6239a0d58226aa00c59f91.js → nsis-9be894401cb1f040a25733c286606d9a.js} +1 -1
- package/client/_expo/static/js/web/{nushell-67c7fd2229b06355b58be59be717dd0b.js → nushell-5deb300e0f229e925b31abb3cd0462c9.js} +1 -1
- package/client/_expo/static/js/web/{objective-cpp-9794abfb5ad71ab3807ee6d3a70a72d2.js → objective-cpp-08bb61a3450333235855d3c1090719e3.js} +1 -1
- package/client/_expo/static/js/web/{odin-9a3ca372b4d6b5134514d0c632e356a2.js → odin-f72b62efd9a40ef6cf39d719ae967bd6.js} +1 -1
- package/client/_expo/static/js/web/{one-dark-pro-b34fc0dc2af92d0d61665166edced909.js → one-dark-pro-601201fdf090be64376bfe5634d30c16.js} +1 -1
- package/client/_expo/static/js/web/{one-light-1ca65343c827c65ead58291635eb61fa.js → one-light-44b36063927a113dff25a9c81b872b69.js} +1 -1
- package/client/_expo/static/js/web/{openscad-205ae321a013394a57ae55c8453a61bc.js → openscad-bde82d841d52332c770c0acf81fe05e9.js} +1 -1
- package/client/_expo/static/js/web/{org-9b940a47a0d260622752a7de8ea032a3.js → org-42f230633416ea36db992c746b72cc16.js} +1 -1
- package/client/_expo/static/js/web/{pascal-c565618b9e42059509b145a8772f9515.js → pascal-edd555e8c462cd9e638a7380650123e2.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-523b1db73e2769b703d7d7198cfed266.js → pierre-dark-825a52078733a003db0d1d9753b97d76.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-protanopia-deuteranopia-fbf069ad47bceb6cbcfa79e25e1ff5b5.js → pierre-dark-protanopia-deuteranopia-2afe64dc6a714652589caccf85cf84e8.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-soft-f88457a740f776f737b23b019de88646.js → pierre-dark-soft-ddc5e5f48dcb7c75cbd379238cf20013.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-tritanopia-3f2ce99bef32b2ffd9107991d3f9184b.js → pierre-dark-tritanopia-cc6a871f82e2f1bab51431c90d884378.js} +1 -1
- package/client/_expo/static/js/web/{pierre-dark-vibrant-c26349565320879c5006619d9a44ffb2.js → pierre-dark-vibrant-365f2df9c115a9c67754d34d11d524b9.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-2ec9bdde0a4243d51deb112bb8e6a929.js → pierre-light-6af54ad0f8067403531f690d4f4d2f68.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-protanopia-deuteranopia-34680663bc05fc95865a29002f64baf2.js → pierre-light-protanopia-deuteranopia-f45474c039fde45a91159fcedf87588c.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-soft-61e14b62a2757f5f14c233c4f06ad4df.js → pierre-light-soft-de7451e2c162500292a5caed7c06bbdb.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-tritanopia-0d21a1d51a9f77877850eb57a0783fde.js → pierre-light-tritanopia-e88cecfc26dc5668744e99fee337df33.js} +1 -1
- package/client/_expo/static/js/web/{pierre-light-vibrant-09452f1ad4566081f9e80d1289bc04ed.js → pierre-light-vibrant-a45ceb572aa8467935b63ecfcf130953.js} +1 -1
- package/client/_expo/static/js/web/{pkl-16ce61ca355963ccc212e5ea98a89b1b.js → pkl-08aa3599fa8f3996458630c531427ecb.js} +1 -1
- package/client/_expo/static/js/web/{plastic-543269a42ae44e61394c0cb4dc7d8ae5.js → plastic-32ba86277bebdc94ef7ac2fe927bcdb2.js} +1 -1
- package/client/_expo/static/js/web/{plsql-2e3590aea074f59c8a30844a6c8608ee.js → plsql-451ab7842354acd2aa71a1a86f9b6c01.js} +1 -1
- package/client/_expo/static/js/web/{po-b0e50bc628c9f47d0c76a3d935c7d124.js → po-e45df65ca6752a8a54496ba4af721ebb.js} +1 -1
- package/client/_expo/static/js/web/{poimandres-1d17bada934d6fcb58ae2bf94514ea77.js → poimandres-0e62ce7928193c633171ff95c5c5b068.js} +1 -1
- package/client/_expo/static/js/web/{polar-1dffbc6305eb98d800be6162b091116d.js → polar-a3785c833bec449f361c855e2857e711.js} +1 -1
- package/client/_expo/static/js/web/{powerquery-ed97159d4ec556774e274e0ce9aea4f8.js → powerquery-9f68f9922647bf0c80e61ada31e21585.js} +1 -1
- package/client/_expo/static/js/web/{prisma-303a556424858f198538d4245b50ac4e.js → prisma-d9418fb1219c53be124a8bb3fa2ed195.js} +1 -1
- package/client/_expo/static/js/web/{prolog-88979484ae212b7ddaf1ca5120b12d79.js → prolog-cb9ddbef520a788f95c2ae00409287c5.js} +1 -1
- package/client/_expo/static/js/web/{proto-67b23a5f650d4d3595cf368e99e1b3c4.js → proto-1b4c863929a53b95edcc24956af918aa.js} +1 -1
- package/client/_expo/static/js/web/{pull-request-diff-tree-e8d8e1159210923e19b43d9e7e18a9f4.js → pull-request-diff-tree-81d5f354ad1e67249a4c31c792d427e4.js} +73 -73
- package/client/_expo/static/js/web/{puppet-a5454a78b181c5b46159af43c0d00357.js → puppet-728890ed71f3a27fd83e03e214c0cd70.js} +1 -1
- package/client/_expo/static/js/web/{purescript-b6def9b2c575e461a567631f1c3548a5.js → purescript-61ce6f49fcb771fbf6cd121cb5929f3c.js} +1 -1
- package/client/_expo/static/js/web/{qml-e0e67324462b51671ebf30f91e3e79fd.js → qml-0bc23973c004d4f4c53ec0a0f1c22b4a.js} +1 -1
- package/client/_expo/static/js/web/{qmldir-5a5ae383737bfa7b7f33752356bf8426.js → qmldir-8a576ffab2bc8b0a8312af02e0d2c4e3.js} +1 -1
- package/client/_expo/static/js/web/{qss-70264a032f26510ffcb3e46584e66449.js → qss-7d05fac29f0bb60e2c4a012457602aa6.js} +1 -1
- package/client/_expo/static/js/web/{racket-3c2091096f1e2f18b6c920bf7f804a5e.js → racket-d4815dac3aae7c1ff0e56cc00edea758.js} +1 -1
- package/client/_expo/static/js/web/{razor-ca6931a33a0a98010043e8a720ebc502.js → razor-36d707c32cfbaba619a36a9fcb37151b.js} +1 -1
- package/client/_expo/static/js/web/{rbs-0488fce4601875d269b7aea8c18266ec.js → rbs-ecf6fe54f1190d8f59fe142c0e838d87.js} +1 -1
- package/client/_expo/static/js/web/{red-37cbc90755a24007895361447b24598a.js → red-36fbbbc66fb2482240278d42e778e271.js} +1 -1
- package/client/_expo/static/js/web/{reg-13a39fd1ecb78ff99ea56d6683d10a1d.js → reg-311ed58557cdec7517bd89f947cb6334.js} +1 -1
- package/client/_expo/static/js/web/{rel-0a44a9eb56b90858b45b194192acc29c.js → rel-1d37fc2996c6b6abcd51a14790ad5d08.js} +1 -1
- package/client/_expo/static/js/web/{reviewflow-diff-themes-a0e7cb9a34cdf67a8b3d3b0c903926a1.js → reviewflow-diff-themes-54cce440d9ef01dbe9fe24a061ed00bc.js} +1 -1
- package/client/_expo/static/js/web/{riscv-dbb7c2829c1b84033bab4cf90889c1b8.js → riscv-6c9a9e93aed628959fb2cc052a5e0055.js} +1 -1
- package/client/_expo/static/js/web/{ron-8343e74681223fdb4861bae67ac440b5.js → ron-d42c39cf55960c14779bda6d03c10b85.js} +1 -1
- package/client/_expo/static/js/web/{rose-pine-0e92dc4f01294c84ea085918628f98f2.js → rose-pine-968a0f33736bab147aa0d153110936b6.js} +1 -1
- package/client/_expo/static/js/web/{rose-pine-dawn-7cb8e90bba38cb32ef5ee82f7d41c11b.js → rose-pine-dawn-6fdef51e73211eef843dbe891b73cdc8.js} +1 -1
- package/client/_expo/static/js/web/{rose-pine-moon-61242d263ab5c7bbf9d8042036eab34f.js → rose-pine-moon-9085d4b7813c946779463203a8d65fa7.js} +1 -1
- package/client/_expo/static/js/web/{rosmsg-a0e514434a55fbe8a467fafe7a92be86.js → rosmsg-d749ceb223d9d8634f52e30286b477c4.js} +1 -1
- package/client/_expo/static/js/web/{rst-cd73ab4fc883d1ba4012f57157cbbec8.js → rst-1392a9eadaa2ba87ad64f337041495c8.js} +1 -1
- package/client/_expo/static/js/web/{sas-a7400b0f6cdf05663c3e16d641cde499.js → sas-244ca7fd42daa1af719ff3f1278d5482.js} +1 -1
- package/client/_expo/static/js/web/{sass-ff59737ad676fd4258b86f317a2a35f9.js → sass-9dca30a8c4bcc522abf628b4e28350a3.js} +1 -1
- package/client/_expo/static/js/web/{scheme-804b675a4fbbcb49fde1066087d36485.js → scheme-a9a49b67c0c56465fb06ddb91d0c0b16.js} +1 -1
- package/client/_expo/static/js/web/{shaderlab-ceaa71b5bec4bbd31fd7e999c9ec47dc.js → shaderlab-5268cba65905fb839c3b5f70b9b64f9f.js} +1 -1
- package/client/_expo/static/js/web/{shellsession-5551a0feb7f9fafdec65a34d03f43fe5.js → shellsession-4a8e0f019dc43d3e62eeb6a93b3e2b99.js} +1 -1
- package/client/_expo/static/js/web/{slack-dark-789df38546731cb305c09a73cd91143f.js → slack-dark-a7edde5704f2e77c44b95214ff54e661.js} +1 -1
- package/client/_expo/static/js/web/{slack-ochin-b62308b92b49c8ac340d0a6b3a43140d.js → slack-ochin-dfd7732992844323cef1cea42127bbdc.js} +1 -1
- package/client/_expo/static/js/web/{smalltalk-20c64cd2d8de4ed6cfc6e4e59a653a9c.js → smalltalk-a91e90c6eed6fd9a1ce3effb1f623980.js} +1 -1
- package/client/_expo/static/js/web/{smithy-3b8cac9a864f76fc16648aca42b409d0.js → smithy-e33f4ef8a405d7bd53cb038fbd22ea1f.js} +1 -1
- package/client/_expo/static/js/web/{snazzy-light-b95a55a39fcbf8a2fb749c8cd72b6d01.js → snazzy-light-8dfa992d6fa8cee0ac122869ef97b1e7.js} +1 -1
- package/client/_expo/static/js/web/{solarized-dark-d602c6f13b5d22a3b9c089ba8ab5dc20.js → solarized-dark-ba07a6660cdbbdb9fa9af4bd6276b21b.js} +1 -1
- package/client/_expo/static/js/web/{solarized-light-8ff3caa0e783c6b9c7f03e0b44717c7c.js → solarized-light-e0815ce3f7e9f5cc178be450f0ad12e4.js} +1 -1
- package/client/_expo/static/js/web/{solidity-16e2515b497f51fd5601f1c38da51e8b.js → solidity-744cdb1c99f3d3fcd7138b3c51541072.js} +1 -1
- package/client/_expo/static/js/web/{soy-e3be0e30baf39d4def047f4853a41445.js → soy-d6b5df4ead3d93d5dced33611db4011a.js} +1 -1
- package/client/_expo/static/js/web/{sparql-32469a0ca638a69e240367f2e2f4427a.js → sparql-7d2c57d13e59f9e86141086c0ef29b87.js} +1 -1
- package/client/_expo/static/js/web/{splunk-b85a0d7f9017a8d03268b884ec3a7552.js → splunk-3cdf2fa5dea71e66d1f7211e0f7df6ba.js} +1 -1
- package/client/_expo/static/js/web/{ssh-config-da103d2f93f3bf74e5fa0e53c69d44cb.js → ssh-config-367dae7131a7b47a7e9c884b57dbda46.js} +1 -1
- package/client/_expo/static/js/web/{stata-267a78f4fb1f8d729fb6c2a32d3da6a9.js → stata-00136a75f81bcbbc5896d11e4f62998c.js} +1 -1
- package/client/_expo/static/js/web/{surrealql-7c80a6eb761edcf02b619926af0cab24.js → surrealql-e0925df375c1c4366c18124163a1cda7.js} +1 -1
- package/client/_expo/static/js/web/{svelte-2702f9614e69656cfe9ac42869c79513.js → svelte-a2626aa0d82414948279661b3a66dec2.js} +1 -1
- package/client/_expo/static/js/web/{synthwave-84-26ff933249cae5700819d17b436dd0ba.js → synthwave-84-c8de3a34d9dc673474577df2ec53f9c6.js} +1 -1
- package/client/_expo/static/js/web/{systemd-c4521ad3a8a263637f954b35403e30a0.js → systemd-d80429941d14b4d05bf728a9d00f0677.js} +1 -1
- package/client/_expo/static/js/web/{talonscript-77e846352186ff201be4e726bc3e6726.js → talonscript-f6edad080b28bf5720654b3f68a027b5.js} +1 -1
- package/client/_expo/static/js/web/{tasl-8afa609fdccdb5d3d86fe89c5460765b.js → tasl-9ab772b0db078ea8eab4141be2f55c65.js} +1 -1
- package/client/_expo/static/js/web/{tcl-388b4eb8b4c89554bce0d9dd3568f8f5.js → tcl-893ad8fdc6d4533a37ded55be075aec0.js} +1 -1
- package/client/_expo/static/js/web/{templ-968966b129140621b61b21785c3198bb.js → templ-3f11872ba41d13415662b03fbe293bfe.js} +1 -1
- package/client/_expo/static/js/web/{terraform-fdc251ecef43c8e24e908b74e7e2f00c.js → terraform-3b4d6ee4a261b5fdf0a99159d4f38f5d.js} +1 -1
- package/client/_expo/static/js/web/{tokyo-night-d1aa090362c18d1d5d74a74fca898dfe.js → tokyo-night-917a26ba6b311e5d3dfa9cf95b969d3c.js} +1 -1
- package/client/_expo/static/js/web/{toml-ca15fde86642f72feeb7d7c9188d9f51.js → toml-eeb7554c694e26fd5f3f40489daf6eca.js} +1 -1
- package/client/_expo/static/js/web/{ts-tags-f533eba2db73e18cebed7046b1be53d9.js → ts-tags-593695228b7eb59a0b7c771342802ef2.js} +6 -6
- package/client/_expo/static/js/web/{tsv-5890117927240fc2095272f0a68b5079.js → tsv-f5cae242679b26857ce2dfe0eb61ba68.js} +1 -1
- package/client/_expo/static/js/web/{typespec-a9d0556ba9b784ae22d03bbf97d50529.js → typespec-7f01fe089a7a875e8a162201541849af.js} +1 -1
- package/client/_expo/static/js/web/{typst-89f7ea3665628a8ebe7486d4d4917489.js → typst-aa779e907d46e39d634063396bc1278e.js} +1 -1
- package/client/_expo/static/js/web/{v-6e77391c446c3ef6fda1f20d99ecef2e.js → v-c33bf6bd3cf07ae9c941e33b18ad7c80.js} +1 -1
- package/client/_expo/static/js/web/{vala-406f769c1fc988d559c17f7cd8b78a6b.js → vala-e75403004c43f90ef0f654cfc89b584e.js} +1 -1
- package/client/_expo/static/js/web/{vesper-6c77aca86b4f35d5f9b9e7b3c2dbd791.js → vesper-cb5e6cfcd9c44b902ee9f4c9be1dd989.js} +1 -1
- package/client/_expo/static/js/web/{vhdl-f08dc57e0f0ce6fdf2437a4d68f7934a.js → vhdl-b727d12cadf696aea4812f50820bdce8.js} +1 -1
- package/client/_expo/static/js/web/{viml-e4dd48f57bc8687dd44fd51749c1a6a8.js → viml-64d55c1f8de6e5fa11d7f024a5617347.js} +1 -1
- package/client/_expo/static/js/web/{vitesse-black-add6f6ab191f5f6255ada93e18d5627c.js → vitesse-black-269bec513de05fd04122a3d0ccccf806.js} +1 -1
- package/client/_expo/static/js/web/{vitesse-dark-4c1ac96701240c173cbe2de209bb6523.js → vitesse-dark-b1ea3334894f9823288d08e0b7915f08.js} +1 -1
- package/client/_expo/static/js/web/{vitesse-light-8338524e68c5eed1b442a6be72cfdc6b.js → vitesse-light-934f7dc328f586bcb51115c2f3168ada.js} +1 -1
- package/client/_expo/static/js/web/{vue-304d58f1806ae9127cfb8dfe8627c9e2.js → vue-4a564e2fa823a87c5c2e76d6ffd28af7.js} +5 -5
- package/client/_expo/static/js/web/{vue-html-a681e3fc5392feec40098d4f9c37e8f7.js → vue-html-97f9d2c8866b5ddaf6cedd5ae05f1e4a.js} +1 -1
- package/client/_expo/static/js/web/{vue-vine-407d7545cec3d3cc13187ee22694c676.js → vue-vine-46757395a4f74066b1042a09755f6953.js} +1 -1
- package/client/_expo/static/js/web/{vyper-da913bf303b960b1f6aed6ddbd774aef.js → vyper-5e8bb5c51d91613012b9e755b4fbf9cd.js} +1 -1
- package/client/_expo/static/js/web/{wasm-ca6dbcb46b9be37d56623c9b7d1098ff.js → wasm-53a03d4766cc3f5ada015b92795c090c.js} +2 -2
- package/client/_expo/static/js/web/{wasm-295026821c54ecf9b4c855e0a011b0d5.js → wasm-983ccf6e4134036b6f4facb21bd6c1da.js} +1 -1
- package/client/_expo/static/js/web/{wasm-B9ZqxnKj-2f19dbc959bc7f4760f6ad5c45c05a79.js → wasm-B9ZqxnKj-c8ae30c1d2e12d5988b30d48cd459146.js} +1 -1
- package/client/_expo/static/js/web/{wenyan-e784d41c3440569972e99d4171233172.js → wenyan-27680029f8a5caf9cd38fd817c18227d.js} +1 -1
- package/client/_expo/static/js/web/{wgsl-69878295dc2966642a5ae08e8a1d96da.js → wgsl-8a8a91cf2cabb4db5db2013358e6a3c4.js} +1 -1
- package/client/_expo/static/js/web/{wikitext-adf14174cfcbbe805e0a228ea7dd4872.js → wikitext-cbae139d40a742be29324de9a0dfeaae.js} +1 -1
- package/client/_expo/static/js/web/{wit-3f3d75dbb9395afec717fe84d13a998c.js → wit-94fe08391cdb09ea49664411b80cb8c5.js} +1 -1
- package/client/_expo/static/js/web/{wolfram-b92b73cad7abe8a48c89536e1a99475f.js → wolfram-dc8adc07db1e1de6ef6a0945b322e786.js} +1 -1
- package/client/_expo/static/js/web/{zenscript-120150b12704596c9dcc0ce857757c40.js → zenscript-a99f07c063e239acc4b984487c165440.js} +1 -1
- package/client/index.html +3 -3
- package/package.json +2 -2
- package/client/_expo/static/css/global-a244c8d2cac31b99e7a710a48cdf6474.css +0 -2
- package/client/_expo/static/js/web/pull-request-diff-viewer-a7e98be6fd208bfd0c5ab76509220f7f.js +0 -5
package/build/index-node.mjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import { env } from 'node:process';
|
|
1
|
+
import { env, pid } from 'node:process';
|
|
2
2
|
import { appLogger } from 'nightingale-app-console';
|
|
3
3
|
import { execFile, spawn, spawnSync } from 'node:child_process';
|
|
4
|
-
import { existsSync, readFileSync,
|
|
5
|
-
import { readdir, readFile } from 'node:fs/promises';
|
|
4
|
+
import { statSync, existsSync, readFileSync, mkdirSync, chmodSync, writeFileSync, renameSync } from 'node:fs';
|
|
5
|
+
import { readdir, mkdir, writeFile, rename, readFile } from 'node:fs/promises';
|
|
6
6
|
import { homedir } from 'node:os';
|
|
7
|
-
import { join, isAbsolute, dirname,
|
|
7
|
+
import { join, isAbsolute, dirname, resolve, relative, sep, normalize, extname } from 'node:path';
|
|
8
8
|
import { promisify } from 'node:util';
|
|
9
|
-
import {
|
|
9
|
+
import { defaultRepoPaths, createGitHubTransport, fetchBranchPullRequestHeads, fetchOpenPullRequests, parsePullRequestEdit, fetchPullRequestRevisions, fetchPullRequestCandidates, fetchPullRequestPart, applyPullRequestEdit, createReviewflowFollower, withAccountBoard, applyStreamEvent, createReviewflowClient, readReviewflowStream, readAccountBoards, assembleBoard, isDiffWhitespace, isPullRequestPart, isBranchDiffScope } from '@reviewflow/sdk';
|
|
10
10
|
import { Agent, request } from 'node:https';
|
|
11
11
|
import { createGunzip } from 'node:zlib';
|
|
12
|
-
import { createBindingsCache, readReadingOrder, readFileAtSha, readPullRequestDiff, readImpacts } from '@reviewflow/sdk/git';
|
|
12
|
+
import { createBindingsCache, completeWorktreeRemoval, prepareWorktreeRemoval, readWorktreeRemovalStatus, readWorktrees, pushCheckout, pullCheckout, readHeadBranch, readReadingOrder, readFileAtSha, readPullRequestDiff, readBranches, readCheckoutSync, readCommitDiff, readRecentCommits, readCheckoutBranchDiff, readImpacts } from '@reviewflow/sdk/git';
|
|
13
13
|
import { randomBytes, createCipheriv, createDecipheriv } from 'node:crypto';
|
|
14
14
|
import { createServer } from 'node:http';
|
|
15
15
|
import { readEditableFile, saveEditableFile } from '@reviewflow/sdk/files';
|
|
@@ -38,16 +38,24 @@ const readRepos = (configPath, repos) => {
|
|
|
38
38
|
}
|
|
39
39
|
return result;
|
|
40
40
|
};
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
const builtInRepoPaths = () => defaultRepoPaths.map(expandHome);
|
|
42
|
+
const readRepoPaths = (configPath, object) => {
|
|
43
|
+
const { repoPaths, defaultRepoPath } = object;
|
|
44
|
+
if (repoPaths !== void 0) {
|
|
45
|
+
if (!Array.isArray(repoPaths) || !repoPaths.every((path) => typeof path === "string")) {
|
|
46
|
+
throw new TypeError(`${configPath}: "repoPaths" must be a list of paths`);
|
|
47
|
+
}
|
|
48
|
+
return repoPaths.map(expandHome);
|
|
49
|
+
}
|
|
50
|
+
if (defaultRepoPath === void 0) return builtInRepoPaths();
|
|
51
|
+
if (typeof defaultRepoPath !== "string") {
|
|
44
52
|
throw new TypeError(`${configPath}: "defaultRepoPath" must be a path`);
|
|
45
53
|
}
|
|
46
|
-
return expandHome(
|
|
54
|
+
return [expandHome(defaultRepoPath)];
|
|
47
55
|
};
|
|
48
56
|
const readConfig = (configPath) => {
|
|
49
57
|
if (!existsSync(configPath)) {
|
|
50
|
-
return { repos: {},
|
|
58
|
+
return { repos: {}, repoPaths: builtInRepoPaths() };
|
|
51
59
|
}
|
|
52
60
|
let parsed;
|
|
53
61
|
try {
|
|
@@ -61,7 +69,7 @@ const readConfig = (configPath) => {
|
|
|
61
69
|
const object = typeof parsed === "object" && parsed !== null ? parsed : {};
|
|
62
70
|
return {
|
|
63
71
|
repos: readRepos(configPath, object.repos),
|
|
64
|
-
|
|
72
|
+
repoPaths: readRepoPaths(configPath, object)
|
|
65
73
|
};
|
|
66
74
|
};
|
|
67
75
|
const ownerRepoOfRemote = (url) => {
|
|
@@ -136,18 +144,26 @@ const findCheckoutUnder = async (base, ownerRepo) => {
|
|
|
136
144
|
}
|
|
137
145
|
return null;
|
|
138
146
|
};
|
|
147
|
+
const findCheckoutUnderAny = async (bases, ownerRepo) => {
|
|
148
|
+
for (const base of bases) {
|
|
149
|
+
const found = await findCheckoutUnder(base, ownerRepo);
|
|
150
|
+
if (found !== null) return found;
|
|
151
|
+
}
|
|
152
|
+
return null;
|
|
153
|
+
};
|
|
154
|
+
const describeRepoPaths = (repoPaths) => repoPaths.length === 0 ? "no repositories folder" : repoPaths.join(", ");
|
|
139
155
|
const resolveCheckout = async (configPath, ownerRepo) => {
|
|
140
156
|
const config = readConfig(configPath);
|
|
141
157
|
const path = findPath(config.repos, ownerRepo);
|
|
142
158
|
if (path === null) {
|
|
143
|
-
const found = await
|
|
159
|
+
const found = await findCheckoutUnderAny(config.repoPaths, ownerRepo);
|
|
144
160
|
if (found !== null) return { checkout: found };
|
|
145
161
|
return {
|
|
146
162
|
refused: {
|
|
147
163
|
reason: "notConfigured",
|
|
148
164
|
ownerRepo,
|
|
149
165
|
configPath,
|
|
150
|
-
detail: `no checkout is configured for ${ownerRepo}, and none whose origin is ${ownerRepo} was found under ${config.
|
|
166
|
+
detail: `no checkout is configured for ${ownerRepo}, and none whose origin is ${ownerRepo} was found under ${describeRepoPaths(config.repoPaths)}`
|
|
151
167
|
}
|
|
152
168
|
};
|
|
153
169
|
}
|
|
@@ -164,6 +180,35 @@ const resolveCheckout = async (configPath, ownerRepo) => {
|
|
|
164
180
|
}
|
|
165
181
|
return { checkout: path };
|
|
166
182
|
};
|
|
183
|
+
const ownerRepoOfDirectory = async (path) => {
|
|
184
|
+
if (!existsSync(join(path, ".git"))) return null;
|
|
185
|
+
const url = await readOriginUrl(path);
|
|
186
|
+
return url === null ? null : ownerRepoOfRemote(url);
|
|
187
|
+
};
|
|
188
|
+
const discoverCheckoutsUnder = async (base) => {
|
|
189
|
+
const directories = await readDirectories(base);
|
|
190
|
+
const entries = directories.toSorted(
|
|
191
|
+
(left, right) => left.name.localeCompare(right.name)
|
|
192
|
+
);
|
|
193
|
+
const found = await Promise.all(
|
|
194
|
+
entries.map(async (entry) => {
|
|
195
|
+
const path = join(base, entry.name);
|
|
196
|
+
const ownerRepo = await ownerRepoOfDirectory(path);
|
|
197
|
+
return ownerRepo === null ? null : { ownerRepo, path, name: entry.name };
|
|
198
|
+
})
|
|
199
|
+
);
|
|
200
|
+
const byRepo = /* @__PURE__ */ new Map();
|
|
201
|
+
for (const checkout of found) {
|
|
202
|
+
if (checkout === null) continue;
|
|
203
|
+
const key = checkout.ownerRepo.toLowerCase();
|
|
204
|
+
const repoName = checkout.ownerRepo.split("/")[1] ?? "";
|
|
205
|
+
const named = checkout.name.toLowerCase() === repoName.toLowerCase();
|
|
206
|
+
if (!byRepo.has(key) || named) {
|
|
207
|
+
byRepo.set(key, { ownerRepo: checkout.ownerRepo, path: checkout.path });
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
return [...byRepo.values()];
|
|
211
|
+
};
|
|
167
212
|
const describeRepoAttachment = async (configPath, ownerRepo) => {
|
|
168
213
|
let resolved;
|
|
169
214
|
try {
|
|
@@ -184,17 +229,16 @@ const describeRepoAttachment = async (configPath, ownerRepo) => {
|
|
|
184
229
|
}
|
|
185
230
|
return { ownerRepo, status: "attached", detail: resolved.checkout };
|
|
186
231
|
};
|
|
187
|
-
const ownerRepoPattern = /^[^/\s]+\/[^/\s]+$/;
|
|
188
|
-
const configKeys = /* @__PURE__ */ new Set(["defaultRepoPath", "repos"]);
|
|
189
|
-
const
|
|
190
|
-
if (path === void 0) return { warning: null };
|
|
232
|
+
const ownerRepoPattern$1 = /^[^/\s]+\/[^/\s]+$/;
|
|
233
|
+
const configKeys = /* @__PURE__ */ new Set(["repoPaths", "defaultRepoPath", "repos"]);
|
|
234
|
+
const validateFolder = (label, path) => {
|
|
191
235
|
if (typeof path !== "string" || path.trim() === "") {
|
|
192
|
-
return { error:
|
|
236
|
+
return { error: `${label} must be a non-empty string` };
|
|
193
237
|
}
|
|
194
238
|
const expanded = expandHome(path);
|
|
195
239
|
if (!isAbsolute(expanded)) {
|
|
196
240
|
return {
|
|
197
|
-
error:
|
|
241
|
+
error: `${label} must be an absolute path or start with "~/", got "${path}"`
|
|
198
242
|
};
|
|
199
243
|
}
|
|
200
244
|
let isDirectory = false;
|
|
@@ -203,7 +247,32 @@ const validateDefaultRepoPath = (path) => {
|
|
|
203
247
|
} catch {
|
|
204
248
|
}
|
|
205
249
|
return {
|
|
206
|
-
warning: isDirectory ? null :
|
|
250
|
+
warning: isDirectory ? null : `${label}: ${expanded} does not exist or is not a directory`
|
|
251
|
+
};
|
|
252
|
+
};
|
|
253
|
+
const validateRepoPaths = (object) => {
|
|
254
|
+
if ("repoPaths" in object && "defaultRepoPath" in object) {
|
|
255
|
+
return {
|
|
256
|
+
error: '"defaultRepoPath" is the former one-folder form of "repoPaths": keep only "repoPaths"'
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
const { repoPaths } = object;
|
|
260
|
+
const checks = (() => {
|
|
261
|
+
if ("defaultRepoPath" in object) {
|
|
262
|
+
return [validateFolder('"defaultRepoPath"', object.defaultRepoPath)];
|
|
263
|
+
}
|
|
264
|
+
if (repoPaths === void 0) return [];
|
|
265
|
+
if (!Array.isArray(repoPaths)) {
|
|
266
|
+
return [{ error: '"repoPaths" must be a list of folders' }];
|
|
267
|
+
}
|
|
268
|
+
return repoPaths.map(
|
|
269
|
+
(path, index) => validateFolder(`repoPaths[${String(index)}]`, path)
|
|
270
|
+
);
|
|
271
|
+
})();
|
|
272
|
+
const refused = checks.find((check) => "error" in check);
|
|
273
|
+
if (refused !== void 0) return refused;
|
|
274
|
+
return {
|
|
275
|
+
warnings: checks.map((check) => "warning" in check ? check.warning : null).filter((warning) => warning !== null)
|
|
207
276
|
};
|
|
208
277
|
};
|
|
209
278
|
const validateConfigSource = async (source) => {
|
|
@@ -222,11 +291,11 @@ const validateConfigSource = async (source) => {
|
|
|
222
291
|
const unknownKey = Object.keys(object).find((key) => !configKeys.has(key));
|
|
223
292
|
if (unknownKey !== void 0) {
|
|
224
293
|
return {
|
|
225
|
-
error: `unknown key "${unknownKey}": the keys are "
|
|
294
|
+
error: `unknown key "${unknownKey}": the keys are "repoPaths" and "repos"`
|
|
226
295
|
};
|
|
227
296
|
}
|
|
228
|
-
const
|
|
229
|
-
if ("error" in
|
|
297
|
+
const repoPathsCheck = validateRepoPaths(object);
|
|
298
|
+
if ("error" in repoPathsCheck) return repoPathsCheck;
|
|
230
299
|
const repos = object.repos;
|
|
231
300
|
if (typeof repos !== "object" || repos === null || Array.isArray(repos)) {
|
|
232
301
|
return {
|
|
@@ -235,7 +304,7 @@ const validateConfigSource = async (source) => {
|
|
|
235
304
|
}
|
|
236
305
|
const entries = Object.entries(repos);
|
|
237
306
|
for (const [ownerRepo, path] of entries) {
|
|
238
|
-
if (!ownerRepoPattern.test(ownerRepo)) {
|
|
307
|
+
if (!ownerRepoPattern$1.test(ownerRepo)) {
|
|
239
308
|
return {
|
|
240
309
|
error: `repos key "${ownerRepo}" must be owner/repo`
|
|
241
310
|
};
|
|
@@ -258,7 +327,7 @@ const validateConfigSource = async (source) => {
|
|
|
258
327
|
})
|
|
259
328
|
);
|
|
260
329
|
return {
|
|
261
|
-
warnings: [
|
|
330
|
+
warnings: [...repoPathsCheck.warnings, ...problems].filter(
|
|
262
331
|
(problem) => problem !== null
|
|
263
332
|
)
|
|
264
333
|
};
|
|
@@ -405,7 +474,21 @@ const operations = {
|
|
|
405
474
|
readPullRequestDiff,
|
|
406
475
|
readFileAtSha,
|
|
407
476
|
readReadingOrder,
|
|
408
|
-
readImpacts: (request) => readImpacts({ ...request, cache: bindingsCache })
|
|
477
|
+
readImpacts: (request) => readImpacts({ ...request, cache: bindingsCache }),
|
|
478
|
+
readHeadBranch,
|
|
479
|
+
readCheckoutBranchDiff: ({ checkout, scope, whitespace, branch }) => readCheckoutBranchDiff({ cwd: checkout, scope, whitespace, branch }),
|
|
480
|
+
readRecentCommits: ({ checkout, limit, branch }) => readRecentCommits({ cwd: checkout, limit, branch }),
|
|
481
|
+
readCommitDiff: ({ checkout, sha, whitespace }) => readCommitDiff({ cwd: checkout, sha, whitespace }),
|
|
482
|
+
readCheckoutSync: ({ checkout, fetch }) => readCheckoutSync({ cwd: checkout, fetch }),
|
|
483
|
+
pullCheckout,
|
|
484
|
+
pushCheckout,
|
|
485
|
+
readWorktrees,
|
|
486
|
+
readBranches: (checkout) => readBranches({ cwd: checkout }),
|
|
487
|
+
fetchOpenPullRequests,
|
|
488
|
+
fetchBranchPullRequestHeads,
|
|
489
|
+
readWorktreeRemovalStatus,
|
|
490
|
+
prepareWorktreeRemoval,
|
|
491
|
+
completeWorktreeRemoval
|
|
409
492
|
};
|
|
410
493
|
|
|
411
494
|
const errorMessage = (error) => error instanceof Error ? error.message : String(error);
|
|
@@ -943,9 +1026,153 @@ const judgeRequest = ({
|
|
|
943
1026
|
return { allowed: false, reason: `origin ${origin} is not allowed` };
|
|
944
1027
|
};
|
|
945
1028
|
|
|
1029
|
+
const repositoriesCachePathOf = (configPath) => join(dirname(configPath), "cache", "repositories.json");
|
|
1030
|
+
const isFoundCheckout = (value) => typeof value === "object" && value !== null && typeof value.ownerRepo === "string" && typeof value.path === "string";
|
|
1031
|
+
const isRepositoriesCache = (value) => {
|
|
1032
|
+
if (typeof value !== "object" || value === null) return false;
|
|
1033
|
+
const cache = value;
|
|
1034
|
+
return Array.isArray(cache.repoPaths) && cache.repoPaths.every((path) => typeof path === "string") && typeof cache.scannedAt === "string" && Array.isArray(cache.checkouts) && cache.checkouts.every(isFoundCheckout);
|
|
1035
|
+
};
|
|
1036
|
+
const readCache = (cachePath) => {
|
|
1037
|
+
try {
|
|
1038
|
+
const parsed = JSON.parse(readFileSync(cachePath, "utf8"));
|
|
1039
|
+
return isRepositoriesCache(parsed) ? parsed : null;
|
|
1040
|
+
} catch {
|
|
1041
|
+
return null;
|
|
1042
|
+
}
|
|
1043
|
+
};
|
|
1044
|
+
const writeCache = async (cachePath, cache) => {
|
|
1045
|
+
const temporary = `${cachePath}.${String(pid)}.tmp`;
|
|
1046
|
+
try {
|
|
1047
|
+
await mkdir(dirname(cachePath), { recursive: true });
|
|
1048
|
+
await writeFile(temporary, `${JSON.stringify(cache, null, 2)}
|
|
1049
|
+
`);
|
|
1050
|
+
await rename(temporary, cachePath);
|
|
1051
|
+
} catch (error) {
|
|
1052
|
+
console.warn(`could not write ${cachePath}:`, error);
|
|
1053
|
+
}
|
|
1054
|
+
};
|
|
1055
|
+
const sameFolders = (left, right) => left.length === right.length && left.every((path, index) => path === right[index]);
|
|
1056
|
+
const scanRepoPaths = async (repoPaths) => {
|
|
1057
|
+
const byRepo = /* @__PURE__ */ new Map();
|
|
1058
|
+
for (const base of repoPaths) {
|
|
1059
|
+
for (const checkout of await discoverCheckoutsUnder(base)) {
|
|
1060
|
+
const key = checkout.ownerRepo.toLowerCase();
|
|
1061
|
+
if (!byRepo.has(key)) byRepo.set(key, checkout);
|
|
1062
|
+
}
|
|
1063
|
+
}
|
|
1064
|
+
return [...byRepo.values()];
|
|
1065
|
+
};
|
|
1066
|
+
const readFoundCheckouts = async (configPath, repoPaths, refresh) => {
|
|
1067
|
+
const cachePath = repositoriesCachePathOf(configPath);
|
|
1068
|
+
const cached = refresh ? null : readCache(cachePath);
|
|
1069
|
+
if (cached !== null && sameFolders(cached.repoPaths, repoPaths)) {
|
|
1070
|
+
return cached;
|
|
1071
|
+
}
|
|
1072
|
+
const scanned = {
|
|
1073
|
+
repoPaths,
|
|
1074
|
+
scannedAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
1075
|
+
checkouts: await scanRepoPaths(repoPaths)
|
|
1076
|
+
};
|
|
1077
|
+
await writeCache(cachePath, scanned);
|
|
1078
|
+
return scanned;
|
|
1079
|
+
};
|
|
1080
|
+
const listCheckouts = async (configPath, { refresh = false } = {}) => {
|
|
1081
|
+
const config = readConfig(configPath);
|
|
1082
|
+
const configured = Object.entries(config.repos).map(([ownerRepo, path]) => ({
|
|
1083
|
+
ownerRepo,
|
|
1084
|
+
path,
|
|
1085
|
+
configured: true
|
|
1086
|
+
}));
|
|
1087
|
+
const known = new Set(
|
|
1088
|
+
configured.map(({ ownerRepo }) => ownerRepo.toLowerCase())
|
|
1089
|
+
);
|
|
1090
|
+
const found = await readFoundCheckouts(configPath, config.repoPaths, refresh);
|
|
1091
|
+
const discovered = found.checkouts.filter(({ ownerRepo }) => !known.has(ownerRepo.toLowerCase())).map((checkout) => ({ ...checkout, configured: false }));
|
|
1092
|
+
return {
|
|
1093
|
+
checkouts: [...configured, ...discovered].toSorted(
|
|
1094
|
+
(left, right) => left.ownerRepo.localeCompare(right.ownerRepo)
|
|
1095
|
+
),
|
|
1096
|
+
repoPaths: config.repoPaths,
|
|
1097
|
+
scannedAt: found.scannedAt
|
|
1098
|
+
};
|
|
1099
|
+
};
|
|
1100
|
+
const resolveListedCheckout = async (configPath, ownerRepo) => {
|
|
1101
|
+
const wanted = ownerRepo.toLowerCase();
|
|
1102
|
+
const { checkouts } = await listCheckouts(configPath);
|
|
1103
|
+
const listed = checkouts.find(
|
|
1104
|
+
(checkout) => checkout.ownerRepo.toLowerCase() === wanted
|
|
1105
|
+
);
|
|
1106
|
+
if (listed === void 0) {
|
|
1107
|
+
return {
|
|
1108
|
+
refused: `${ownerRepo} is neither configured nor a checkout found under repoPaths (refresh the list after a clone)`
|
|
1109
|
+
};
|
|
1110
|
+
}
|
|
1111
|
+
const problem = await checkCheckout(listed.ownerRepo, listed.path);
|
|
1112
|
+
return problem === null ? { checkout: listed.path } : { refused: problem };
|
|
1113
|
+
};
|
|
1114
|
+
const usualFolderNames = /* @__PURE__ */ new Set([
|
|
1115
|
+
"code",
|
|
1116
|
+
"dev",
|
|
1117
|
+
"developer",
|
|
1118
|
+
"git",
|
|
1119
|
+
"github",
|
|
1120
|
+
"projects",
|
|
1121
|
+
"repos",
|
|
1122
|
+
"src",
|
|
1123
|
+
"work",
|
|
1124
|
+
"workspace"
|
|
1125
|
+
]);
|
|
1126
|
+
const asConfigPath = (path, home) => {
|
|
1127
|
+
const inside = relative(home, path);
|
|
1128
|
+
return inside.startsWith("..") ? `${path}/` : `~/${inside.split(sep).join("/")}/`;
|
|
1129
|
+
};
|
|
1130
|
+
const candidateFolders = async (home) => {
|
|
1131
|
+
const homeEntries = await readDirectories(home);
|
|
1132
|
+
const roots = homeEntries.filter((entry) => usualFolderNames.has(entry.name.toLowerCase())).map((entry) => join(home, entry.name)).toSorted();
|
|
1133
|
+
const nested = await Promise.all(
|
|
1134
|
+
roots.map(async (root) => {
|
|
1135
|
+
const entries = await readDirectories(root);
|
|
1136
|
+
return entries.filter((entry) => !existsSync(join(root, entry.name, ".git"))).map((entry) => join(root, entry.name)).toSorted();
|
|
1137
|
+
})
|
|
1138
|
+
);
|
|
1139
|
+
return roots.flatMap((root, index) => [root, ...nested[index] ?? []]);
|
|
1140
|
+
};
|
|
1141
|
+
const normalizeFolder = (path) => resolve(path);
|
|
1142
|
+
const suggestRepoPaths = async ({
|
|
1143
|
+
home = homedir(),
|
|
1144
|
+
repoPaths
|
|
1145
|
+
}) => {
|
|
1146
|
+
const listed = new Set(repoPaths.map(normalizeFolder));
|
|
1147
|
+
const suggestions = [];
|
|
1148
|
+
for (const folder of await candidateFolders(home)) {
|
|
1149
|
+
if (listed.has(normalizeFolder(folder))) continue;
|
|
1150
|
+
const found = await discoverCheckoutsUnder(folder);
|
|
1151
|
+
if (found.length > 0) {
|
|
1152
|
+
suggestions.push({
|
|
1153
|
+
path: asConfigPath(folder, home),
|
|
1154
|
+
checkouts: found.length
|
|
1155
|
+
});
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
return suggestions;
|
|
1159
|
+
};
|
|
1160
|
+
|
|
946
1161
|
const apiRoutes = {
|
|
947
1162
|
configFile: "/api/config/file",
|
|
948
1163
|
configRepo: "/api/config/repo",
|
|
1164
|
+
configRepoPathSuggestions: "/api/config/repo-paths/suggestions",
|
|
1165
|
+
repos: "/api/repos",
|
|
1166
|
+
repoDiff: "/api/repos/diff",
|
|
1167
|
+
repoCommits: "/api/repos/commits",
|
|
1168
|
+
repoCommit: "/api/repos/commit",
|
|
1169
|
+
repoStatus: "/api/repos/status",
|
|
1170
|
+
repoPull: "/api/repos/pull",
|
|
1171
|
+
repoPush: "/api/repos/push",
|
|
1172
|
+
repoBranches: "/api/repos/branches",
|
|
1173
|
+
repoPulls: "/api/repos/pulls",
|
|
1174
|
+
repoWorktreeStatus: "/api/repos/worktree-status",
|
|
1175
|
+
repoWorktreeRemove: "/api/repos/worktree-remove",
|
|
949
1176
|
prDetail: "/api/prs/detail",
|
|
950
1177
|
prCandidates: "/api/prs/candidates",
|
|
951
1178
|
prRevisions: "/api/prs/revisions",
|
|
@@ -1019,6 +1246,217 @@ const handleConfigRepo = async ({ configPath }, request) => {
|
|
|
1019
1246
|
if (!/^[^/\s]+\/[^/\s]+$/.test(repo)) return bad("repo must be owner/repo");
|
|
1020
1247
|
return ok(await describeRepoAttachment(configPath, repo));
|
|
1021
1248
|
};
|
|
1249
|
+
const handleRepoPathSuggestions = async ({ configPath }, request) => {
|
|
1250
|
+
if (request.method !== "GET") return notAllowed();
|
|
1251
|
+
const { repoPaths } = readConfig(configPath);
|
|
1252
|
+
const body = {
|
|
1253
|
+
suggestions: await suggestRepoPaths({ repoPaths })
|
|
1254
|
+
};
|
|
1255
|
+
return ok(body);
|
|
1256
|
+
};
|
|
1257
|
+
const handleRepos = async ({ operations, configPath }, request) => {
|
|
1258
|
+
if (request.method !== "GET") return notAllowed();
|
|
1259
|
+
const listing = await listCheckouts(configPath, {
|
|
1260
|
+
refresh: request.query.get("refresh") === "1"
|
|
1261
|
+
});
|
|
1262
|
+
const body = {
|
|
1263
|
+
configPath,
|
|
1264
|
+
repoPaths: listing.repoPaths,
|
|
1265
|
+
scannedAt: listing.scannedAt,
|
|
1266
|
+
repos: await Promise.all(
|
|
1267
|
+
listing.checkouts.map(async (checkout) => {
|
|
1268
|
+
const problem = await checkCheckout(checkout.ownerRepo, checkout.path);
|
|
1269
|
+
const branch = problem === null ? await operations.readHeadBranch(checkout.path) : null;
|
|
1270
|
+
return { ...checkout, branch, problem };
|
|
1271
|
+
})
|
|
1272
|
+
)
|
|
1273
|
+
};
|
|
1274
|
+
return ok(body);
|
|
1275
|
+
};
|
|
1276
|
+
const ownerRepoPattern = /^[^/\s]+\/[^/\s]+$/;
|
|
1277
|
+
const readListedCheckout = async ({ operations, configPath }, request) => {
|
|
1278
|
+
const repo = request.query.get("repo") ?? "";
|
|
1279
|
+
if (!ownerRepoPattern.test(repo)) return bad("repo must be owner/repo");
|
|
1280
|
+
const resolved = await resolveListedCheckout(configPath, repo);
|
|
1281
|
+
if ("refused" in resolved) return bad(resolved.refused);
|
|
1282
|
+
const worktree = request.query.get("worktree");
|
|
1283
|
+
if (worktree === null || worktree === resolved.checkout) {
|
|
1284
|
+
return resolved.checkout;
|
|
1285
|
+
}
|
|
1286
|
+
const worktrees = await operations.readWorktrees(resolved.checkout).catch(() => []);
|
|
1287
|
+
const known = worktrees.some(
|
|
1288
|
+
({ path, prunable }) => path === worktree && !prunable
|
|
1289
|
+
);
|
|
1290
|
+
return known ? worktree : bad(`${worktree} is not a worktree of ${repo}`);
|
|
1291
|
+
};
|
|
1292
|
+
const gitAnswer = async (read) => {
|
|
1293
|
+
try {
|
|
1294
|
+
return ok(await read());
|
|
1295
|
+
} catch (error) {
|
|
1296
|
+
return bad(errorMessage(error));
|
|
1297
|
+
}
|
|
1298
|
+
};
|
|
1299
|
+
const readWhitespace = (request) => {
|
|
1300
|
+
const whitespace = request.query.get("whitespace") ?? "show";
|
|
1301
|
+
return isDiffWhitespace(whitespace) ? whitespace : bad("whitespace must be show or hide");
|
|
1302
|
+
};
|
|
1303
|
+
const readBranchParam = (request) => {
|
|
1304
|
+
const branch = request.query.get("branch");
|
|
1305
|
+
if (branch === null) return {};
|
|
1306
|
+
return branch.trim() === "" ? bad("branch must not be empty") : { branch };
|
|
1307
|
+
};
|
|
1308
|
+
const handleRepoDiff = async ({ operations, configPath }, request) => {
|
|
1309
|
+
if (request.method !== "GET") return notAllowed();
|
|
1310
|
+
const scope = request.query.get("scope") ?? "committed";
|
|
1311
|
+
if (!isBranchDiffScope(scope)) {
|
|
1312
|
+
return bad("scope must be committed or uncommitted");
|
|
1313
|
+
}
|
|
1314
|
+
const whitespace = readWhitespace(request);
|
|
1315
|
+
if (typeof whitespace !== "string") return whitespace;
|
|
1316
|
+
const branch = readBranchParam(request);
|
|
1317
|
+
if (isAnswer(branch)) return branch;
|
|
1318
|
+
const checkout = await readListedCheckout(
|
|
1319
|
+
{ operations, configPath },
|
|
1320
|
+
request
|
|
1321
|
+
);
|
|
1322
|
+
if (typeof checkout !== "string") return checkout;
|
|
1323
|
+
return gitAnswer(
|
|
1324
|
+
() => operations.readCheckoutBranchDiff({
|
|
1325
|
+
checkout,
|
|
1326
|
+
scope,
|
|
1327
|
+
whitespace,
|
|
1328
|
+
...branch
|
|
1329
|
+
})
|
|
1330
|
+
);
|
|
1331
|
+
};
|
|
1332
|
+
const maxRecentCommits = 100;
|
|
1333
|
+
const handleRepoCommits = async ({ operations, configPath }, request) => {
|
|
1334
|
+
if (request.method !== "GET") return notAllowed();
|
|
1335
|
+
const limit = Number(request.query.get("limit") ?? "30");
|
|
1336
|
+
if (!Number.isInteger(limit) || limit < 1 || limit > maxRecentCommits) {
|
|
1337
|
+
return bad(`limit must be between 1 and ${String(maxRecentCommits)}`);
|
|
1338
|
+
}
|
|
1339
|
+
const branch = readBranchParam(request);
|
|
1340
|
+
if (isAnswer(branch)) return branch;
|
|
1341
|
+
const checkout = await readListedCheckout(
|
|
1342
|
+
{ operations, configPath },
|
|
1343
|
+
request
|
|
1344
|
+
);
|
|
1345
|
+
if (typeof checkout !== "string") return checkout;
|
|
1346
|
+
return gitAnswer(
|
|
1347
|
+
() => operations.readRecentCommits({ checkout, limit, ...branch })
|
|
1348
|
+
);
|
|
1349
|
+
};
|
|
1350
|
+
const handleRepoCommit = async ({ operations, configPath }, request) => {
|
|
1351
|
+
if (request.method !== "GET") return notAllowed();
|
|
1352
|
+
const sha = request.query.get("sha") ?? "";
|
|
1353
|
+
if (!isSha(sha)) return bad("sha must be a commit sha");
|
|
1354
|
+
const whitespace = readWhitespace(request);
|
|
1355
|
+
if (typeof whitespace !== "string") return whitespace;
|
|
1356
|
+
const checkout = await readListedCheckout(
|
|
1357
|
+
{ operations, configPath },
|
|
1358
|
+
request
|
|
1359
|
+
);
|
|
1360
|
+
if (typeof checkout !== "string") return checkout;
|
|
1361
|
+
return gitAnswer(
|
|
1362
|
+
() => operations.readCommitDiff({ checkout, sha, whitespace })
|
|
1363
|
+
);
|
|
1364
|
+
};
|
|
1365
|
+
const handleRepoStatus = async ({ operations, configPath }, request) => {
|
|
1366
|
+
if (request.method !== "GET") return notAllowed();
|
|
1367
|
+
const checkout = await readListedCheckout(
|
|
1368
|
+
{ operations, configPath },
|
|
1369
|
+
request
|
|
1370
|
+
);
|
|
1371
|
+
if (typeof checkout !== "string") return checkout;
|
|
1372
|
+
const fetch = request.query.get("fetch") === "1" ? "always" : "never";
|
|
1373
|
+
return gitAnswer(() => operations.readCheckoutSync({ checkout, fetch }));
|
|
1374
|
+
};
|
|
1375
|
+
const syncHandler = (action) => async ({ operations, configPath }, request) => {
|
|
1376
|
+
if (request.method !== "POST") return notAllowed();
|
|
1377
|
+
const checkout = await readListedCheckout(
|
|
1378
|
+
{ operations, configPath },
|
|
1379
|
+
request
|
|
1380
|
+
);
|
|
1381
|
+
if (typeof checkout !== "string") return checkout;
|
|
1382
|
+
return gitAnswer(async () => {
|
|
1383
|
+
await operations[action](checkout);
|
|
1384
|
+
return { path: checkout };
|
|
1385
|
+
});
|
|
1386
|
+
};
|
|
1387
|
+
const handleRepoBranches = async ({ operations, configPath }, request) => {
|
|
1388
|
+
if (request.method !== "GET") return notAllowed();
|
|
1389
|
+
const checkout = await readListedCheckout(
|
|
1390
|
+
{ operations, configPath },
|
|
1391
|
+
request
|
|
1392
|
+
);
|
|
1393
|
+
if (typeof checkout !== "string") return checkout;
|
|
1394
|
+
return gitAnswer(() => operations.readBranches(checkout));
|
|
1395
|
+
};
|
|
1396
|
+
const handleRepoPulls = async ({ transport, operations }, request) => {
|
|
1397
|
+
if (request.method !== "GET") return notAllowed();
|
|
1398
|
+
const repo = request.query.get("repo") ?? "";
|
|
1399
|
+
if (!ownerRepoPattern.test(repo)) return bad("repo must be owner/repo");
|
|
1400
|
+
return gitAnswer(() => operations.fetchOpenPullRequests(transport, repo));
|
|
1401
|
+
};
|
|
1402
|
+
const readBranchPullRequests = async ({ transport, operations }, ownerRepo, checkout) => {
|
|
1403
|
+
const branch = await operations.readHeadBranch(checkout);
|
|
1404
|
+
if (branch === null) return { pullRequests: [], pullRequestsError: null };
|
|
1405
|
+
try {
|
|
1406
|
+
return {
|
|
1407
|
+
pullRequests: await operations.fetchBranchPullRequestHeads(
|
|
1408
|
+
transport,
|
|
1409
|
+
ownerRepo,
|
|
1410
|
+
branch
|
|
1411
|
+
),
|
|
1412
|
+
pullRequestsError: null
|
|
1413
|
+
};
|
|
1414
|
+
} catch (error) {
|
|
1415
|
+
return { pullRequests: [], pullRequestsError: errorMessage(error) };
|
|
1416
|
+
}
|
|
1417
|
+
};
|
|
1418
|
+
const handleWorktreeStatus = async (deps, request) => {
|
|
1419
|
+
if (request.method !== "GET") return notAllowed();
|
|
1420
|
+
const checkout = await readListedCheckout(deps, request);
|
|
1421
|
+
if (typeof checkout !== "string") return checkout;
|
|
1422
|
+
const ownerRepo = request.query.get("repo") ?? "";
|
|
1423
|
+
return gitAnswer(async () => {
|
|
1424
|
+
const branchPullRequests = await readBranchPullRequests(
|
|
1425
|
+
deps,
|
|
1426
|
+
ownerRepo,
|
|
1427
|
+
checkout
|
|
1428
|
+
);
|
|
1429
|
+
const status = await deps.operations.readWorktreeRemovalStatus({
|
|
1430
|
+
worktree: checkout,
|
|
1431
|
+
keptShas: branchPullRequests.pullRequests.map(({ sha }) => sha)
|
|
1432
|
+
});
|
|
1433
|
+
return { status, ...branchPullRequests };
|
|
1434
|
+
});
|
|
1435
|
+
};
|
|
1436
|
+
const handleWorktreeRemove = async (deps, request) => {
|
|
1437
|
+
if (request.method !== "POST") return notAllowed();
|
|
1438
|
+
if (request.query.get("worktree") === null) {
|
|
1439
|
+
return bad("worktree must name the worktree to remove");
|
|
1440
|
+
}
|
|
1441
|
+
const checkout = await readListedCheckout(deps, request);
|
|
1442
|
+
if (typeof checkout !== "string") return checkout;
|
|
1443
|
+
const ownerRepo = request.query.get("repo") ?? "";
|
|
1444
|
+
const payload = await request.readJson();
|
|
1445
|
+
const deleteBranch = payload?.deleteBranch === true;
|
|
1446
|
+
return gitAnswer(async () => {
|
|
1447
|
+
const { pullRequests } = await readBranchPullRequests(
|
|
1448
|
+
deps,
|
|
1449
|
+
ownerRepo,
|
|
1450
|
+
checkout
|
|
1451
|
+
);
|
|
1452
|
+
const plan = await deps.operations.prepareWorktreeRemoval({
|
|
1453
|
+
worktree: checkout,
|
|
1454
|
+
keptShas: pullRequests.map(({ sha }) => sha),
|
|
1455
|
+
deleteBranch
|
|
1456
|
+
});
|
|
1457
|
+
return deps.operations.completeWorktreeRemoval(plan);
|
|
1458
|
+
});
|
|
1459
|
+
};
|
|
1022
1460
|
const handlePrDetail = async ({ transport, operations }, request) => {
|
|
1023
1461
|
if (request.method !== "GET") return notAllowed();
|
|
1024
1462
|
const read = readRef(request);
|
|
@@ -1241,6 +1679,18 @@ const handleEvents = ({ reviewflow }, request) => Promise.resolve(
|
|
|
1241
1679
|
const handlers = {
|
|
1242
1680
|
[apiRoutes.configFile]: handleConfigFile,
|
|
1243
1681
|
[apiRoutes.configRepo]: handleConfigRepo,
|
|
1682
|
+
[apiRoutes.configRepoPathSuggestions]: handleRepoPathSuggestions,
|
|
1683
|
+
[apiRoutes.repos]: handleRepos,
|
|
1684
|
+
[apiRoutes.repoDiff]: handleRepoDiff,
|
|
1685
|
+
[apiRoutes.repoCommits]: handleRepoCommits,
|
|
1686
|
+
[apiRoutes.repoCommit]: handleRepoCommit,
|
|
1687
|
+
[apiRoutes.repoStatus]: handleRepoStatus,
|
|
1688
|
+
[apiRoutes.repoPull]: syncHandler("pullCheckout"),
|
|
1689
|
+
[apiRoutes.repoPush]: syncHandler("pushCheckout"),
|
|
1690
|
+
[apiRoutes.repoBranches]: handleRepoBranches,
|
|
1691
|
+
[apiRoutes.repoPulls]: handleRepoPulls,
|
|
1692
|
+
[apiRoutes.repoWorktreeStatus]: handleWorktreeStatus,
|
|
1693
|
+
[apiRoutes.repoWorktreeRemove]: handleWorktreeRemove,
|
|
1244
1694
|
[apiRoutes.prDetail]: handlePrDetail,
|
|
1245
1695
|
[apiRoutes.prCandidates]: handlePrCandidates,
|
|
1246
1696
|
[apiRoutes.prRevisions]: handlePrRevisions,
|