Mercurial
comparison MODULE.bazel @ 277:1d99147f520c
Merge Qwen services and infinite canvas heads
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Mon, 17 Aug 2026 17:01:40 -0700 |
| parents | b55c22cff335 78699f810817 |
| children |
comparison
equal
deleted
inserted
replaced
| 276:b55c22cff335 | 277:1d99147f520c |
|---|---|
| 1 bazel_dep(name = "rules_cc", version = "0.2.17") | 1 bazel_dep(name = "rules_cc", version = "0.2.17") |
| 2 bazel_dep(name = "platforms", version = "1.0.0") | 2 bazel_dep(name = "platforms", version = "1.0.0") |
| 3 bazel_dep(name = "bazel_skylib", version = "1.8.2") | 3 bazel_dep(name = "bazel_skylib", version = "1.8.2") |
| 4 bazel_dep(name = "rules_shell", version = "0.6.1") | 4 bazel_dep(name = "rules_shell", version = "0.6.1") |
| 5 | |
| 5 bazel_dep(name = "aspect_rules_js", version = "2.9.2", dev_dependency = True) | 6 bazel_dep(name = "aspect_rules_js", version = "2.9.2", dev_dependency = True) |
| 6 bazel_dep(name = "rules_nodejs", version = "6.7.3", dev_dependency = True) | 7 bazel_dep(name = "rules_nodejs", version = "6.7.3", dev_dependency = True) |
| 8 | |
| 7 bazel_dep(name = "openssl", version = "3.3.1.bcr.7") | 9 bazel_dep(name = "openssl", version = "3.3.1.bcr.7") |
| 8 bazel_dep(name = "rules_foreign_cc", version = "0.14.0") | 10 bazel_dep(name = "rules_foreign_cc", version = "0.14.0") |
| 11 | |
| 9 bazel_dep(name = "buildifier_prebuilt", version = "7.1.2", dev_dependency = True) | 12 bazel_dep(name = "buildifier_prebuilt", version = "7.1.2", dev_dependency = True) |
| 10 bazel_dep(name = "aspect_bazel_lib", version = "2.19.2") | 13 bazel_dep(name = "aspect_bazel_lib", version = "2.19.2") |
| 11 bazel_dep(name = "apple_support", version = "1.24.2", repo_name = "build_bazel_apple_support") | 14 bazel_dep(name = "apple_support", version = "1.24.2", repo_name = "build_bazel_apple_support") |
| 12 bazel_dep(name = "rules_apple", version = "4.1.0", repo_name = "build_bazel_rules_apple") | 15 bazel_dep(name = "rules_apple", version = "4.1.0", repo_name = "build_bazel_rules_apple") |
| 13 | 16 |
| 16 module_name = "emsdk", | 19 module_name = "emsdk", |
| 17 path = "third_party/emsdk/bazel", | 20 path = "third_party/emsdk/bazel", |
| 18 ) | 21 ) |
| 19 | 22 |
| 20 http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") | 23 http_file = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_file") |
| 24 | |
| 21 http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") | 25 http_archive = use_repo_rule("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| 22 | 26 |
| 23 http_archive( | 27 http_archive( |
| 24 name = "tectonic_linux_x86_64", | 28 name = "tectonic_linux_x86_64", |
| 25 urls = ["https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.17.0/tectonic-0.17.0-x86_64-unknown-linux-musl.tar.gz"], | 29 build_file_content = """ |
| 26 sha256 = "8533d07f9ccbd7a65824b9e0459041bca34af1eb33daba48f59215593753a3b7", | |
| 27 build_file_content = """ | |
| 28 exports_files( | 30 exports_files( |
| 29 ["tectonic"], | 31 ["tectonic"], |
| 30 visibility = ["//visibility:public"], | 32 visibility = ["//visibility:public"], |
| 31 ) | 33 ) |
| 32 """, | 34 """, |
| 35 sha256 = "8533d07f9ccbd7a65824b9e0459041bca34af1eb33daba48f59215593753a3b7", | |
| 36 urls = ["https://github.com/tectonic-typesetting/tectonic/releases/download/tectonic%400.17.0/tectonic-0.17.0-x86_64-unknown-linux-musl.tar.gz"], | |
| 33 ) | 37 ) |
| 34 | 38 |
| 35 http_archive( | 39 http_archive( |
| 36 name = "copilot_cli_linux_x86_64", | 40 name = "copilot_cli_linux_x86_64", |
| 37 urls = ["https://github.com/github/copilot-cli/releases/download/v1.0.73/copilot-linux-x64.tar.gz"], | 41 build_file_content = """ |
| 38 sha256 = "8f9bb5f7e364c267265d1e24ac2aea69ed559ddb956719c6db12a353de6c5970", | |
| 39 build_file_content = """ | |
| 40 exports_files( | 42 exports_files( |
| 41 ["copilot"], | 43 ["copilot"], |
| 42 visibility = ["//visibility:public"], | 44 visibility = ["//visibility:public"], |
| 43 ) | 45 ) |
| 44 """, | 46 """, |
| 47 sha256 = "8f9bb5f7e364c267265d1e24ac2aea69ed559ddb956719c6db12a353de6c5970", | |
| 48 urls = ["https://github.com/github/copilot-cli/releases/download/v1.0.73/copilot-linux-x64.tar.gz"], | |
| 49 ) | |
| 50 | |
| 51 http_archive( | |
| 52 name = "llama_cpp_win_cuda_12_4_x64", | |
| 53 build_file_content = """ | |
| 54 filegroup( | |
| 55 name = "runtime", | |
| 56 srcs = glob(["**"]), | |
| 57 visibility = ["//visibility:public"], | |
| 58 ) | |
| 59 """, | |
| 60 sha256 = "84b863f70a8b4c2873e93385d0b208f24776ecd1b946a2cb6d5cda863d143c3d", | |
| 61 urls = ["https://github.com/ggml-org/llama.cpp/releases/download/b10453/llama-b10453-bin-win-cuda-12.4-x64.zip"], | |
| 62 ) | |
| 63 | |
| 64 http_archive( | |
| 65 name = "llama_cpp_win_cuda_12_4_cudart_x64", | |
| 66 build_file_content = """ | |
| 67 filegroup( | |
| 68 name = "runtime", | |
| 69 srcs = glob(["**"]), | |
| 70 visibility = ["//visibility:public"], | |
| 71 ) | |
| 72 """, | |
| 73 sha256 = "8c79a9b226de4b3cacfd1f83d24f962d0773be79f1e7b75c6af4ded7e32ae1d6", | |
| 74 urls = ["https://github.com/ggml-org/llama.cpp/releases/download/b10453/cudart-llama-bin-win-cuda-12.4-x64.zip"], | |
| 45 ) | 75 ) |
| 46 | 76 |
| 47 http_file( | 77 http_file( |
| 48 name = "mercurial_cp311_wheel", | 78 name = "mercurial_cp311_wheel", |
| 49 url = "https://files.pythonhosted.org/packages/ea/21/053406cf91b23bef2ac27a7023632efaf0d3c126134b322e2bb753626102/mercurial-7.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", | 79 sha256 = "33576d9747b7db7d40950cb122c5a87686d92ea1dfe0f1ef0498df077c852ba7", |
| 50 sha256 = "33576d9747b7db7d40950cb122c5a87686d92ea1dfe0f1ef0498df077c852ba7", | 80 url = "https://files.pythonhosted.org/packages/ea/21/053406cf91b23bef2ac27a7023632efaf0d3c126134b322e2bb753626102/mercurial-7.2.3-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", |
| 51 ) | 81 ) |
| 52 | 82 |
| 53 http_archive( | 83 http_archive( |
| 54 name = "playwright_chromium_linux", | 84 name = "playwright_chromium_linux", |
| 55 urls = ["https://playwright.azureedge.net/builds/chromium/1140/chromium-linux.zip"], | 85 build_file_content = """ |
| 56 sha256 = "e78cda52fa7e847abcd36a48ffabda43e71e2220a3e9a398f7c9a179529570a5", | |
| 57 strip_prefix = "chrome-linux", | |
| 58 build_file_content = """ | |
| 59 exports_files(["chrome"]) | 86 exports_files(["chrome"]) |
| 60 | 87 |
| 61 filegroup( | 88 filegroup( |
| 62 name = "chromium", | 89 name = "chromium", |
| 63 srcs = glob(["**"], exclude = ["BUILD.bazel"]), | 90 srcs = glob(["**"], exclude = ["BUILD.bazel"]), |
| 64 visibility = ["//visibility:public"], | 91 visibility = ["//visibility:public"], |
| 65 ) | 92 ) |
| 66 """, | 93 """, |
| 94 sha256 = "e78cda52fa7e847abcd36a48ffabda43e71e2220a3e9a398f7c9a179529570a5", | |
| 95 strip_prefix = "chrome-linux", | |
| 96 urls = ["https://playwright.azureedge.net/builds/chromium/1140/chromium-linux.zip"], | |
| 67 ) | 97 ) |
| 68 | 98 |
| 69 http_archive( | 99 http_archive( |
| 70 name = "libwebp_linux_x86_64", | 100 name = "libwebp_linux_x86_64", |
| 71 urls = ["https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.6.0-linux-x86-64.tar.gz"], | 101 build_file_content = """ |
| 72 sha256 = "1c5ffab71efecefa0e3c23516c3a3a1dccb45cc310ae1095c6f14ae268e38067", | |
| 73 strip_prefix = "libwebp-1.6.0-linux-x86-64", | |
| 74 build_file_content = """ | |
| 75 exports_files(["bin/cwebp"]) | 102 exports_files(["bin/cwebp"]) |
| 76 """, | 103 """, |
| 104 sha256 = "1c5ffab71efecefa0e3c23516c3a3a1dccb45cc310ae1095c6f14ae268e38067", | |
| 105 strip_prefix = "libwebp-1.6.0-linux-x86-64", | |
| 106 urls = ["https://storage.googleapis.com/downloads.webmproject.org/releases/webp/libwebp-1.6.0-linux-x86-64.tar.gz"], | |
| 77 ) | 107 ) |
| 78 | 108 |
| 79 http_archive( | 109 http_archive( |
| 80 name = "hlsjs", | 110 name = "hlsjs", |
| 81 urls = ["https://github.com/video-dev/hls.js/releases/download/v1.6.16/release.zip"], | 111 build_file_content = """ |
| 82 sha256 = "09c827969e702e82be694da80dbf16dbdf5ff6819c33a374b1757e1bc0adb458", | |
| 83 build_file_content = """ | |
| 84 exports_files( | 112 exports_files( |
| 85 ["dist/hls.min.js"], | 113 ["dist/hls.min.js"], |
| 86 visibility = ["//visibility:public"], | 114 visibility = ["//visibility:public"], |
| 87 ) | 115 ) |
| 88 """, | 116 """, |
| 117 sha256 = "09c827969e702e82be694da80dbf16dbdf5ff6819c33a374b1757e1bc0adb458", | |
| 118 urls = ["https://github.com/video-dev/hls.js/releases/download/v1.6.16/release.zip"], | |
| 89 ) | 119 ) |
| 90 | 120 |
| 91 node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") | 121 node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node") |
| 92 node.toolchain(node_version = "20.18.0") | 122 node.toolchain(node_version = "20.18.0") |
| 93 use_repo(node, "nodejs") | 123 use_repo(node, "nodejs") |
| 94 | 124 |
| 95 npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm") | 125 npm = use_extension("@aspect_rules_js//npm:extensions.bzl", "npm") |
| 96 npm.npm_translate_lock( | 126 npm.npm_translate_lock( |
| 97 name = "hg_web_npm", | 127 name = "hg_web_npm", |
| 98 data = ["//hg-web/e2e:package.json"], | 128 data = ["//hg-web/e2e:package.json"], |
| 99 npm_package_lock = "//hg-web/e2e:package-lock.json", | 129 npm_package_lock = "//hg-web/e2e:package-lock.json", |
| 100 pnpm_lock = "//hg-web/e2e:pnpm-lock.yaml", | 130 pnpm_lock = "//hg-web/e2e:pnpm-lock.yaml", |
| 101 ) | 131 ) |
| 102 use_repo(npm, "hg_web_npm") | 132 use_repo(npm, "hg_web_npm") |
| 103 | 133 |
| 104 # Bun | 134 # Bun |
| 105 http_file( | 135 http_file( |
| 106 name = "bun_darwin_arm64_zip", | 136 name = "bun_darwin_arm64_zip", |
| 107 url = "https://github.com/oven-sh/bun/releases/download/bun-v1.2.23/bun-darwin-aarch64.zip", | 137 sha256 = "22f5fa3fff72b0d3b8e7e0f8051ecadf2e41920d474ac62db5279144809c9005", |
| 108 sha256 = "22f5fa3fff72b0d3b8e7e0f8051ecadf2e41920d474ac62db5279144809c9005", | 138 url = "https://github.com/oven-sh/bun/releases/download/bun-v1.2.23/bun-darwin-aarch64.zip", |
| 109 ) | 139 ) |
| 140 | |
| 110 http_file( | 141 http_file( |
| 111 name = "bun_linux_aarch64_zip", | 142 name = "bun_linux_aarch64_zip", |
| 112 url = "https://github.com/oven-sh/bun/releases/download/bun-v1.2.23/bun-linux-aarch64.zip", | 143 sha256 = "6a7a98c546d084a845deda62eb2a5b94a6a14a63ea81cf9186d46bf55bf910a9", |
| 113 sha256 = "6a7a98c546d084a845deda62eb2a5b94a6a14a63ea81cf9186d46bf55bf910a9", | 144 url = "https://github.com/oven-sh/bun/releases/download/bun-v1.2.23/bun-linux-aarch64.zip", |
| 114 ) | 145 ) |
| 146 | |
| 115 http_file( | 147 http_file( |
| 116 name = "bun_linux_x86_zip", | 148 name = "bun_linux_x86_zip", |
| 117 url = "https://github.com/oven-sh/bun/releases/download/bun-v1.2.23/bun-linux-x64.zip", | 149 sha256 = "cf0ed0a920799d576ffde4e0cae66d732bf23c2530407f26f59c7831dffe1f0e", |
| 118 sha256 = "cf0ed0a920799d576ffde4e0cae66d732bf23c2530407f26f59c7831dffe1f0e", | 150 url = "https://github.com/oven-sh/bun/releases/download/bun-v1.2.23/bun-linux-x64.zip", |
| 119 ) | 151 ) |
| 120 | 152 |
| 121 # Bring in Python support | 153 # Bring in Python support |
| 122 bazel_dep(name = "rules_python", version = "1.7.0") | 154 bazel_dep(name = "rules_python", version = "1.7.0") |
| 123 | 155 |
| 126 python.toolchain(python_version = "3.11") | 158 python.toolchain(python_version = "3.11") |
| 127 use_repo(python, "python_3_11") | 159 use_repo(python, "python_3_11") |
| 128 | 160 |
| 129 pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") | 161 pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") |
| 130 pip.parse( | 162 pip.parse( |
| 131 hub_name = "inference_pip", | 163 hub_name = "inference_pip", |
| 132 python_version = "3.11", | 164 python_version = "3.11", |
| 133 requirements_lock = "//mrjunejune/inference:requirements_lock.txt", | 165 requirements_lock = "//mrjunejune/inference:requirements_lock.txt", |
| 134 ) | 166 ) |
| 135 use_repo(pip, "inference_pip") | 167 use_repo(pip, "inference_pip") |
| 136 | 168 |
| 137 cef_repository = use_repo_rule("//third_party/cef:cef_repository.bzl", "cef_repository") | 169 cef_repository = use_repo_rule("//third_party/cef:cef_repository.bzl", "cef_repository") |
| 138 cef_repository(name = "cef") | 170 cef_repository(name = "cef") |
| 171 | |
| 172 pip.parse( | |
| 173 hub_name = "dictation_pip", | |
| 174 python_version = "3.11", | |
| 175 requirements_lock = "//dictation:requirements_lock.txt", | |
| 176 ) | |
| 177 use_repo(pip, "dictation_pip") |