@anaconda/desktop-bridge-payload-win32-arm64 0.1.21 → 0.1.22

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.
Files changed (246) hide show
  1. package/THIRD_PARTY_NOTICES +17 -17
  2. package/manifest.json +7 -7
  3. package/package.json +1 -1
  4. package/python/BUILD +1 -1
  5. package/python/DLLs/_asyncio.pyd +0 -0
  6. package/python/DLLs/_bz2.pyd +0 -0
  7. package/python/DLLs/_ctypes.pyd +0 -0
  8. package/python/DLLs/_ctypes_test.pyd +0 -0
  9. package/python/DLLs/_decimal.pyd +0 -0
  10. package/python/DLLs/_elementtree.pyd +0 -0
  11. package/python/DLLs/_hashlib.pyd +0 -0
  12. package/python/DLLs/_lzma.pyd +0 -0
  13. package/python/DLLs/_msi.pyd +0 -0
  14. package/python/DLLs/_multiprocessing.pyd +0 -0
  15. package/python/DLLs/_overlapped.pyd +0 -0
  16. package/python/DLLs/_queue.pyd +0 -0
  17. package/python/DLLs/_socket.pyd +0 -0
  18. package/python/DLLs/_sqlite3.pyd +0 -0
  19. package/python/DLLs/_ssl.pyd +0 -0
  20. package/python/DLLs/_testbuffer.pyd +0 -0
  21. package/python/DLLs/_testcapi.pyd +0 -0
  22. package/python/DLLs/_testconsole.pyd +0 -0
  23. package/python/DLLs/_testimportmultiple.pyd +0 -0
  24. package/python/DLLs/_testinternalcapi.pyd +0 -0
  25. package/python/DLLs/_testmultiphase.pyd +0 -0
  26. package/python/DLLs/_uuid.pyd +0 -0
  27. package/python/DLLs/_zoneinfo.pyd +0 -0
  28. package/python/DLLs/libcrypto-3-arm64.dll +0 -0
  29. package/python/DLLs/libffi-8.dll +0 -0
  30. package/python/DLLs/libssl-3-arm64.dll +0 -0
  31. package/python/DLLs/pyexpat.pyd +0 -0
  32. package/python/DLLs/select.pyd +0 -0
  33. package/python/DLLs/sqlite3.dll +0 -0
  34. package/python/DLLs/unicodedata.pyd +0 -0
  35. package/python/DLLs/winsound.pyd +0 -0
  36. package/python/Lib/site-packages/_ruamel_yaml.cp311-win_arm64.pyd +0 -0
  37. package/python/Lib/site-packages/anaconda_anon_usage-0.8.1.dist-info/RECORD +1 -1
  38. package/python/Lib/site-packages/anaconda_auth-0.15.3.dist-info/RECORD +1 -1
  39. package/python/Lib/site-packages/anaconda_cli_base-0.9.1.dist-info/RECORD +1 -1
  40. package/python/Lib/site-packages/anaconda_desktop_bridge/__main__.py +8 -0
  41. package/python/Lib/site-packages/anaconda_desktop_bridge/__pycache__/__main__.cpython-311.pyc +0 -0
  42. package/python/Lib/site-packages/anaconda_desktop_bridge/__pycache__/errors.cpython-311.pyc +0 -0
  43. package/python/Lib/site-packages/anaconda_desktop_bridge/__pycache__/telemetry.cpython-311.pyc +0 -0
  44. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/__init__.py +2 -0
  45. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/__pycache__/__init__.cpython-311.pyc +0 -0
  46. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/__pycache__/auth_handler.cpython-311.pyc +0 -0
  47. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/__pycache__/auth_plugin.cpython-311.pyc +0 -0
  48. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/__pycache__/lock.cpython-311.pyc +0 -0
  49. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/__pycache__/repo_credentials.cpython-311.pyc +0 -0
  50. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/auth_handler.py +219 -0
  51. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/auth_plugin.py +50 -0
  52. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/lock.py +26 -1
  53. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/operations/__pycache__/channels.cpython-311.pyc +0 -0
  54. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/operations/__pycache__/repodata.cpython-311.pyc +0 -0
  55. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/operations/channels.py +196 -4
  56. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/operations/repodata.py +8 -1
  57. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/repo_credentials.py +224 -0
  58. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/transactions/__pycache__/transaction.cpython-311.pyc +0 -0
  59. package/python/Lib/site-packages/anaconda_desktop_bridge/conda/transactions/transaction.py +23 -0
  60. package/python/Lib/site-packages/anaconda_desktop_bridge/errors.py +24 -0
  61. package/python/Lib/site-packages/anaconda_desktop_bridge/features/__pycache__/conda_tools.cpython-311.pyc +0 -0
  62. package/python/Lib/site-packages/anaconda_desktop_bridge/features/conda_tools.py +8 -0
  63. package/python/Lib/site-packages/anaconda_desktop_bridge/models/__pycache__/conda_tools.cpython-311.pyc +0 -0
  64. package/python/Lib/site-packages/anaconda_desktop_bridge/models/conda_tools.py +46 -1
  65. package/python/Lib/site-packages/anaconda_desktop_bridge/telemetry.py +2 -20
  66. package/python/Lib/site-packages/anaconda_desktop_bridge-0.1.0.dist-info/METADATA +75 -5
  67. package/python/Lib/site-packages/anaconda_desktop_bridge-0.1.0.dist-info/RECORD +16 -13
  68. package/python/Lib/site-packages/anaconda_desktop_bridge-0.1.0.dist-info/uv_cache.json +1 -1
  69. package/python/Lib/site-packages/archspec-0.2.7.dist-info/RECORD +1 -1
  70. package/python/Lib/site-packages/cffi-2.1.1.dist-info/RECORD +1 -1
  71. package/python/Lib/site-packages/charset_normalizer-3.5.2.dist-info/RECORD +1 -1
  72. package/python/Lib/site-packages/conda-26.1.1.dist-info/RECORD +1 -1
  73. package/python/Lib/site-packages/conda_package_handling-2.6.0.dist-info/RECORD +1 -1
  74. package/python/Lib/site-packages/distro-1.9.0.dist-info/RECORD +1 -1
  75. package/python/Lib/site-packages/httpx-0.28.1.dist-info/RECORD +1 -1
  76. package/python/Lib/site-packages/idna-3.20.dist-info/RECORD +1 -1
  77. package/python/Lib/site-packages/jsonpatch-1.47.dist-info/RECORD +2 -2
  78. package/python/Lib/site-packages/keyring-25.7.0.dist-info/RECORD +1 -1
  79. package/python/Lib/site-packages/markdown_it_py-4.3.0.dist-info/RECORD +1 -1
  80. package/python/Lib/site-packages/menuinst/platforms/win_utils/winshortcut.cp311-win_arm64.pyd +0 -0
  81. package/python/Lib/site-packages/menuinst-2.5.1.dist-info/RECORD +2 -2
  82. package/python/Lib/site-packages/platformdirs/__init__.py +155 -128
  83. package/python/Lib/site-packages/platformdirs/__main__.py +10 -10
  84. package/python/Lib/site-packages/platformdirs/__pycache__/__init__.cpython-311.pyc +0 -0
  85. package/python/Lib/site-packages/platformdirs/__pycache__/__main__.cpython-311.pyc +0 -0
  86. package/python/Lib/site-packages/platformdirs/__pycache__/_android.cpython-311.pyc +0 -0
  87. package/python/Lib/site-packages/platformdirs/__pycache__/_runtime.cpython-311.pyc +0 -0
  88. package/python/Lib/site-packages/platformdirs/__pycache__/_xdg.cpython-311.pyc +0 -0
  89. package/python/Lib/site-packages/platformdirs/__pycache__/android.cpython-311.pyc +0 -0
  90. package/python/Lib/site-packages/platformdirs/__pycache__/api.cpython-311.pyc +0 -0
  91. package/python/Lib/site-packages/platformdirs/__pycache__/ios.cpython-311.pyc +0 -0
  92. package/python/Lib/site-packages/platformdirs/__pycache__/macos.cpython-311.pyc +0 -0
  93. package/python/Lib/site-packages/platformdirs/__pycache__/pytest_plugin.cpython-311.pyc +0 -0
  94. package/python/Lib/site-packages/platformdirs/__pycache__/testing.cpython-311.pyc +0 -0
  95. package/python/Lib/site-packages/platformdirs/__pycache__/unix.cpython-311.pyc +0 -0
  96. package/python/Lib/site-packages/platformdirs/__pycache__/version.cpython-311.pyc +0 -0
  97. package/python/Lib/site-packages/platformdirs/__pycache__/windows.cpython-311.pyc +0 -0
  98. package/python/Lib/site-packages/platformdirs/_android.py +67 -0
  99. package/python/Lib/site-packages/platformdirs/_runtime.py +65 -0
  100. package/python/Lib/site-packages/platformdirs/_xdg.py +50 -47
  101. package/python/Lib/site-packages/platformdirs/android.py +64 -112
  102. package/python/Lib/site-packages/platformdirs/api.py +384 -293
  103. package/python/Lib/site-packages/platformdirs/ios.py +40 -40
  104. package/python/Lib/site-packages/platformdirs/macos.py +95 -72
  105. package/python/Lib/site-packages/platformdirs/pytest_plugin.py +5 -4
  106. package/python/Lib/site-packages/platformdirs/testing.py +23 -21
  107. package/python/Lib/site-packages/platformdirs/unix.py +158 -169
  108. package/python/Lib/site-packages/platformdirs/version.py +2 -2
  109. package/python/Lib/site-packages/platformdirs/windows.py +135 -121
  110. package/python/Lib/site-packages/{platformdirs-4.14.5.dist-info → platformdirs-4.14.7.dist-info}/METADATA +1 -1
  111. package/python/Lib/site-packages/platformdirs-4.14.7.dist-info/RECORD +23 -0
  112. package/python/Lib/site-packages/{pydantic_settings-2.16.2.dist-info → platformdirs-4.14.7.dist-info}/WHEEL +1 -1
  113. package/python/Lib/site-packages/platformdirs-4.14.7.dist-info/sboms/platformdirs.cdx.json +14820 -0
  114. package/python/Lib/site-packages/pycosat-0.6.6.dist-info/RECORD +1 -1
  115. package/python/Lib/site-packages/pycosat.cp311-win_arm64.pyd +0 -0
  116. package/python/Lib/site-packages/pydantic_settings/__pycache__/version.cpython-311.pyc +0 -0
  117. package/python/Lib/site-packages/pydantic_settings/sources/providers/__pycache__/cli.cpython-311.pyc +0 -0
  118. package/python/Lib/site-packages/pydantic_settings/sources/providers/__pycache__/nested_secrets.cpython-311.pyc +0 -0
  119. package/python/Lib/site-packages/pydantic_settings/sources/providers/__pycache__/secrets.cpython-311.pyc +0 -0
  120. package/python/Lib/site-packages/pydantic_settings/sources/providers/cli.py +13 -16
  121. package/python/Lib/site-packages/pydantic_settings/sources/providers/nested_secrets.py +32 -18
  122. package/python/Lib/site-packages/pydantic_settings/sources/providers/secrets.py +20 -1
  123. package/python/Lib/site-packages/pydantic_settings/version.py +1 -1
  124. package/python/Lib/site-packages/{pydantic_settings-2.16.2.dist-info → pydantic_settings-2.16.3.dist-info}/METADATA +1 -1
  125. package/python/Lib/site-packages/{pydantic_settings-2.16.2.dist-info → pydantic_settings-2.16.3.dist-info}/RECORD +10 -10
  126. package/python/Lib/site-packages/pygments-2.21.0.dist-info/RECORD +1 -1
  127. package/python/Lib/site-packages/python_dotenv-1.2.4.dist-info/RECORD +1 -1
  128. package/python/Lib/site-packages/ruamel_yaml_clib-0.2.15.dist-info/RECORD +1 -1
  129. package/python/Lib/site-packages/semver/__about__.py +1 -1
  130. package/python/Lib/site-packages/semver/__pycache__/__about__.cpython-311.pyc +0 -0
  131. package/python/Lib/site-packages/semver/__pycache__/version.cpython-311.pyc +0 -0
  132. package/python/Lib/site-packages/semver/version.py +16 -5
  133. package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/METADATA +1 -1
  134. package/python/Lib/site-packages/semver-3.1.2.dist-info/RECORD +17 -0
  135. package/python/Lib/site-packages/sentry_sdk/__pycache__/_types.cpython-311.pyc +0 -0
  136. package/python/Lib/site-packages/sentry_sdk/__pycache__/client.cpython-311.pyc +0 -0
  137. package/python/Lib/site-packages/sentry_sdk/__pycache__/consts.cpython-311.pyc +0 -0
  138. package/python/Lib/site-packages/sentry_sdk/__pycache__/traces.cpython-311.pyc +0 -0
  139. package/python/Lib/site-packages/sentry_sdk/__pycache__/utils.cpython-311.pyc +0 -0
  140. package/python/Lib/site-packages/sentry_sdk/_types.py +27 -3
  141. package/python/Lib/site-packages/sentry_sdk/client.py +1 -1
  142. package/python/Lib/site-packages/sentry_sdk/consts.py +7 -1
  143. package/python/Lib/site-packages/sentry_sdk/crons/__pycache__/decorator.cpython-311.pyc +0 -0
  144. package/python/Lib/site-packages/sentry_sdk/crons/__pycache__/utils.cpython-311.pyc +0 -0
  145. package/python/Lib/site-packages/sentry_sdk/crons/decorator.py +2 -0
  146. package/python/Lib/site-packages/sentry_sdk/crons/utils.py +26 -0
  147. package/python/Lib/site-packages/sentry_sdk/integrations/__pycache__/arq.cpython-311.pyc +0 -0
  148. package/python/Lib/site-packages/sentry_sdk/integrations/__pycache__/gql.cpython-311.pyc +0 -0
  149. package/python/Lib/site-packages/sentry_sdk/integrations/__pycache__/huggingface_hub.cpython-311.pyc +0 -0
  150. package/python/Lib/site-packages/sentry_sdk/integrations/__pycache__/starlette.cpython-311.pyc +0 -0
  151. package/python/Lib/site-packages/sentry_sdk/integrations/__pycache__/trytond.cpython-311.pyc +0 -0
  152. package/python/Lib/site-packages/sentry_sdk/integrations/arq.py +9 -16
  153. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/__init__.py +2 -0
  154. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/__pycache__/__init__.cpython-311.pyc +0 -0
  155. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/__pycache__/_client.cpython-311.pyc +0 -0
  156. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/__pycache__/_instrumentation.cpython-311.pyc +0 -0
  157. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_client.py +13 -15
  158. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_instrumentation.py +11 -13
  159. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_services/__pycache__/base.cpython-311.pyc +0 -0
  160. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_services/__pycache__/bedrock.cpython-311.pyc +0 -0
  161. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_services/base.py +16 -7
  162. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_services/bedrock.py +771 -0
  163. package/python/Lib/site-packages/sentry_sdk/integrations/celery/__init__.py +3 -2
  164. package/python/Lib/site-packages/sentry_sdk/integrations/celery/__pycache__/__init__.cpython-311.pyc +0 -0
  165. package/python/Lib/site-packages/sentry_sdk/integrations/django/__init__.py +1 -1
  166. package/python/Lib/site-packages/sentry_sdk/integrations/django/__pycache__/__init__.cpython-311.pyc +0 -0
  167. package/python/Lib/site-packages/sentry_sdk/integrations/django/__pycache__/signals_handlers.cpython-311.pyc +0 -0
  168. package/python/Lib/site-packages/sentry_sdk/integrations/django/signals_handlers.py +1 -1
  169. package/python/Lib/site-packages/sentry_sdk/integrations/gql.py +28 -3
  170. package/python/Lib/site-packages/sentry_sdk/integrations/huggingface_hub.py +1 -1
  171. package/python/Lib/site-packages/sentry_sdk/integrations/openai_agents/__init__.py +1 -1
  172. package/python/Lib/site-packages/sentry_sdk/integrations/openai_agents/__pycache__/__init__.cpython-311.pyc +0 -0
  173. package/python/Lib/site-packages/sentry_sdk/integrations/starlette.py +2 -2
  174. package/python/Lib/site-packages/sentry_sdk/integrations/trytond.py +1 -1
  175. package/python/Lib/site-packages/sentry_sdk/profiler/__pycache__/continuous_profiler.cpython-311.pyc +0 -0
  176. package/python/Lib/site-packages/sentry_sdk/profiler/__pycache__/transaction_profiler.cpython-311.pyc +0 -0
  177. package/python/Lib/site-packages/sentry_sdk/profiler/continuous_profiler.py +0 -3
  178. package/python/Lib/site-packages/sentry_sdk/profiler/transaction_profiler.py +1 -1
  179. package/python/Lib/site-packages/sentry_sdk/traces.py +1 -1
  180. package/python/Lib/site-packages/sentry_sdk/utils.py +17 -4
  181. package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/METADATA +1 -1
  182. package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/RECORD +31 -31
  183. package/python/Lib/site-packages/tqdm-4.70.1.dist-info/RECORD +1 -1
  184. package/python/Lib/site-packages/typer-0.29.1.dist-info/RECORD +1 -1
  185. package/python/Lib/venv/scripts/nt/python.exe +0 -0
  186. package/python/Lib/venv/scripts/nt/pythonw.exe +0 -0
  187. package/python/Scripts/conda.exe +0 -0
  188. package/python/libs/_asyncio.lib +0 -0
  189. package/python/libs/_bz2.lib +0 -0
  190. package/python/libs/_ctypes.lib +0 -0
  191. package/python/libs/_ctypes_test.lib +0 -0
  192. package/python/libs/_decimal.lib +0 -0
  193. package/python/libs/_elementtree.lib +0 -0
  194. package/python/libs/_hashlib.lib +0 -0
  195. package/python/libs/_lzma.lib +0 -0
  196. package/python/libs/_msi.lib +0 -0
  197. package/python/libs/_multiprocessing.lib +0 -0
  198. package/python/libs/_overlapped.lib +0 -0
  199. package/python/libs/_queue.lib +0 -0
  200. package/python/libs/_socket.lib +0 -0
  201. package/python/libs/_sqlite3.lib +0 -0
  202. package/python/libs/_ssl.lib +0 -0
  203. package/python/libs/_testbuffer.lib +0 -0
  204. package/python/libs/_testcapi.lib +0 -0
  205. package/python/libs/_testconsole.lib +0 -0
  206. package/python/libs/_testimportmultiple.lib +0 -0
  207. package/python/libs/_testinternalcapi.lib +0 -0
  208. package/python/libs/_testmultiphase.lib +0 -0
  209. package/python/libs/_tkinter.lib +0 -0
  210. package/python/libs/_uuid.lib +0 -0
  211. package/python/libs/_zoneinfo.lib +0 -0
  212. package/python/libs/pyexpat.lib +0 -0
  213. package/python/libs/python3.lib +0 -0
  214. package/python/libs/python311.lib +0 -0
  215. package/python/libs/select.lib +0 -0
  216. package/python/libs/sqlite3.lib +0 -0
  217. package/python/libs/unicodedata.lib +0 -0
  218. package/python/libs/winsound.lib +0 -0
  219. package/python/python.exe +0 -0
  220. package/python/python3.dll +0 -0
  221. package/python/python311.dll +0 -0
  222. package/python/pythonw.exe +0 -0
  223. package/python/Lib/site-packages/platformdirs-4.14.5.dist-info/RECORD +0 -20
  224. package/python/Lib/site-packages/semver-3.1.1.dist-info/RECORD +0 -17
  225. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_services/__pycache__/registry.cpython-311.pyc +0 -0
  226. package/python/Lib/site-packages/sentry_sdk/integrations/boto3/_services/registry.py +0 -22
  227. /package/python/Lib/site-packages/{platformdirs-4.14.5.dist-info → platformdirs-4.14.7.dist-info}/INSTALLER +0 -0
  228. /package/python/Lib/site-packages/{platformdirs-4.14.5.dist-info → platformdirs-4.14.7.dist-info}/REQUESTED +0 -0
  229. /package/python/Lib/site-packages/{platformdirs-4.14.5.dist-info → platformdirs-4.14.7.dist-info}/entry_points.txt +0 -0
  230. /package/python/Lib/site-packages/{platformdirs-4.14.5.dist-info → platformdirs-4.14.7.dist-info}/licenses/LICENSE +0 -0
  231. /package/python/Lib/site-packages/{pydantic_settings-2.16.2.dist-info → pydantic_settings-2.16.3.dist-info}/INSTALLER +0 -0
  232. /package/python/Lib/site-packages/{pydantic_settings-2.16.2.dist-info → pydantic_settings-2.16.3.dist-info}/REQUESTED +0 -0
  233. /package/python/Lib/site-packages/{platformdirs-4.14.5.dist-info → pydantic_settings-2.16.3.dist-info}/WHEEL +0 -0
  234. /package/python/Lib/site-packages/{pydantic_settings-2.16.2.dist-info → pydantic_settings-2.16.3.dist-info}/licenses/LICENSE +0 -0
  235. /package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/INSTALLER +0 -0
  236. /package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/REQUESTED +0 -0
  237. /package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/WHEEL +0 -0
  238. /package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/entry_points.txt +0 -0
  239. /package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/licenses/LICENSE.txt +0 -0
  240. /package/python/Lib/site-packages/{semver-3.1.1.dist-info → semver-3.1.2.dist-info}/top_level.txt +0 -0
  241. /package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/INSTALLER +0 -0
  242. /package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/REQUESTED +0 -0
  243. /package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/WHEEL +0 -0
  244. /package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/entry_points.txt +0 -0
  245. /package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/licenses/LICENSE +0 -0
  246. /package/python/Lib/site-packages/{sentry_sdk-2.74.0.dist-info → sentry_sdk-2.75.0.dist-info}/top_level.txt +0 -0
@@ -55,13 +55,13 @@ Python packages
55
55
  msgpack 1.2.4 Apache-2.0
56
56
  packaging 26.3 Apache-2.0 OR BSD-2-Clause
57
57
  pkce 1.0.3 MIT
58
- platformdirs 4.14.5 MIT
58
+ platformdirs 4.14.7 MIT
59
59
  pluggy 1.7.0 MIT
60
60
  pycosat 0.6.6 MIT
61
61
  pycparser 3.12 BSD-3-Clause
62
62
  pydantic 2.14.3 MIT
63
63
  pydantic_core 2.50.4 MIT
64
- pydantic-settings 2.16.2 MIT
64
+ pydantic-settings 2.16.3 MIT
65
65
  pygls 2.1.1 Apache-2.0
66
66
  Pygments 2.21.0 BSD-2-Clause
67
67
  PyJWT 2.15.1 MIT
@@ -72,8 +72,8 @@ Python packages
72
72
  rich 15.0.0 MIT
73
73
  ruamel.yaml 0.18.17 MIT
74
74
  ruamel.yaml.clib 0.2.15 MIT
75
- semver 3.1.1 BSD-3-Clause
76
- sentry-sdk 2.74.0 MIT
75
+ semver 3.1.2 BSD-3-Clause
76
+ sentry-sdk 2.75.0 MIT
77
77
  setuptools 84.2.1 MIT
78
78
  shellingham 1.5.4 ISC License
79
79
  tomli 2.5.0 MIT
@@ -93,7 +93,7 @@ CPython 3.11.15
93
93
  ================================================================================
94
94
  License: PSF-2.0
95
95
  Source: https://www.python.org/downloads/release/python-31115/
96
- Build: python-build-standalone 20260408 (https://github.com/astral-sh/python-build-standalone/releases/tag/20260408)
96
+ Build: python-build-standalone 20260807 (https://github.com/astral-sh/python-build-standalone/releases/tag/20260807)
97
97
  Note: this build includes further libraries (e.g. OpenSSL, SQLite, libffi); their license texts are in the licenses/ directory of that release's full archives, which the install-only build bundled here leaves out
98
98
  Modifications:
99
99
  - removed the EXTERNALLY-MANAGED marker
@@ -4062,13 +4062,13 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4062
4062
  SOFTWARE.
4063
4063
 
4064
4064
  ================================================================================
4065
- platformdirs 4.14.5
4065
+ platformdirs 4.14.7
4066
4066
  ================================================================================
4067
4067
  License: MIT
4068
- Source: https://pypi.org/project/platformdirs/4.14.5/
4068
+ Source: https://pypi.org/project/platformdirs/4.14.7/
4069
4069
  Modifications: none
4070
4070
 
4071
- ---- platformdirs-4.14.5.dist-info/licenses/LICENSE ----
4071
+ ---- platformdirs-4.14.7.dist-info/licenses/LICENSE ----
4072
4072
 
4073
4073
  MIT License
4074
4074
 
@@ -4275,14 +4275,14 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4275
4275
  SOFTWARE.
4276
4276
 
4277
4277
  ================================================================================
4278
- pydantic-settings 2.16.2
4278
+ pydantic-settings 2.16.3
4279
4279
  ================================================================================
4280
4280
  License: MIT
4281
4281
  Author: Samuel Colvin, Eric Jolibois, Hasan Ramezani
4282
- Source: https://pypi.org/project/pydantic-settings/2.16.2/
4282
+ Source: https://pypi.org/project/pydantic-settings/2.16.3/
4283
4283
  Modifications: none
4284
4284
 
4285
- ---- pydantic_settings-2.16.2.dist-info/licenses/LICENSE ----
4285
+ ---- pydantic_settings-2.16.3.dist-info/licenses/LICENSE ----
4286
4286
 
4287
4287
  The MIT License (MIT)
4288
4288
 
@@ -5289,14 +5289,14 @@ Modifications: none
5289
5289
  SOFTWARE.
5290
5290
 
5291
5291
  ================================================================================
5292
- semver 3.1.1
5292
+ semver 3.1.2
5293
5293
  ================================================================================
5294
5294
  License: BSD-3-Clause
5295
5295
  Author: Kostiantyn Rybnikov, Tom Schraitle
5296
- Source: https://pypi.org/project/semver/3.1.1/
5296
+ Source: https://pypi.org/project/semver/3.1.2/
5297
5297
  Modifications: none
5298
5298
 
5299
- ---- semver-3.1.1.dist-info/licenses/LICENSE.txt ----
5299
+ ---- semver-3.1.2.dist-info/licenses/LICENSE.txt ----
5300
5300
 
5301
5301
  Copyright (c) 2013, Konstantine Rybnikov
5302
5302
  All rights reserved.
@@ -5327,14 +5327,14 @@ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
5327
5327
  SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
5328
5328
 
5329
5329
  ================================================================================
5330
- sentry-sdk 2.74.0
5330
+ sentry-sdk 2.75.0
5331
5331
  ================================================================================
5332
5332
  License: MIT
5333
5333
  Author: Sentry Team and Contributors
5334
- Source: https://pypi.org/project/sentry-sdk/2.74.0/
5334
+ Source: https://pypi.org/project/sentry-sdk/2.75.0/
5335
5335
  Modifications: none
5336
5336
 
5337
- ---- sentry_sdk-2.74.0.dist-info/licenses/LICENSE ----
5337
+ ---- sentry_sdk-2.75.0.dist-info/licenses/LICENSE ----
5338
5338
 
5339
5339
  MIT License
5340
5340
 
package/manifest.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "schema": 1,
3
3
  "target": "win32-arm64",
4
- "built_at": "2026-11-12T10:58:42.516695+00:00",
4
+ "built_at": "2026-11-18T07:54:27.803290+00:00",
5
5
  "build_prefix": "C:\\a\\anaconda-desktop-bridge\\anaconda-desktop-bridge\\build\\payload",
6
6
  "python_version": "3.11.15",
7
- "bridge_version": "0.1.21",
7
+ "bridge_version": "0.1.22",
8
8
  "launch": [
9
9
  "python/python.exe",
10
10
  "-E",
@@ -58,15 +58,15 @@
58
58
  "more-itertools": "11.2.1",
59
59
  "msgpack": "1.2.4",
60
60
  "packaging": "26.3",
61
- "pip": "26.0.1",
61
+ "pip": "26.2.1",
62
62
  "pkce": "1.0.3",
63
- "platformdirs": "4.14.5",
63
+ "platformdirs": "4.14.7",
64
64
  "pluggy": "1.7.0",
65
65
  "pycosat": "0.6.6",
66
66
  "pycparser": "3.12",
67
67
  "pydantic": "2.14.3",
68
68
  "pydantic-core": "2.50.4",
69
- "pydantic-settings": "2.16.2",
69
+ "pydantic-settings": "2.16.3",
70
70
  "pygls": "2.1.1",
71
71
  "pygments": "2.21.0",
72
72
  "pyjwt": "2.15.1",
@@ -77,8 +77,8 @@
77
77
  "rich": "15.0.0",
78
78
  "ruamel-yaml": "0.18.17",
79
79
  "ruamel-yaml-clib": "0.2.15",
80
- "semver": "3.1.1",
81
- "sentry-sdk": "2.74.0",
80
+ "semver": "3.1.2",
81
+ "sentry-sdk": "2.75.0",
82
82
  "setuptools": "84.2.1",
83
83
  "shellingham": "1.5.4",
84
84
  "tomli": "2.5.0",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anaconda/desktop-bridge-payload-win32-arm64",
3
- "version": "0.1.21",
3
+ "version": "0.1.22",
4
4
  "description": "Prebuilt, relocatable Anaconda Desktop Bridge runtime for Windows on ARM64. Contains a private CPython, conda and the bridge.",
5
5
  "license": "BSD-3-Clause",
6
6
  "os": [
package/python/BUILD CHANGED
@@ -1 +1 @@
1
- 20260408
1
+ 20260807
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -1,4 +1,4 @@
1
- ../../Scripts/anaconda-anon-usage.exe,sha256=0rVBm3AMk-FpBj05k7JmOG0tn28SYs5TWUv-ycIfNqA,47616
1
+ ../../Scripts/anaconda-anon-usage.exe,sha256=lapJxxZA7xKrGLfKIPHK_BDh_SKYrN9C10Fq9vmm1b0,47616
2
2
  anaconda_anon_usage-0.8.1.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
3
3
  anaconda_anon_usage-0.8.1.dist-info/METADATA,sha256=gP__xM9jzeF0IBtm6lA5GtU9faNcs-vHp9BVkVWdi_E,873
4
4
  anaconda_anon_usage-0.8.1.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
- ../../Scripts/conda-token.exe,sha256=992JOe-Fxb4m4ywDaDRDh8Zf_ANNYaYQV8r7sscOy4w,47616
1
+ ../../Scripts/conda-token.exe,sha256=Yqf8ZygicdBoL-PRqEqo6gqmykV7WFQim8bsQOLOf-M,47616
2
2
  anaconda_auth-0.15.3.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
3
3
  anaconda_auth-0.15.3.dist-info/METADATA,sha256=czqzOVdI6WhK27lkmrbTpg4nszarTDSprIxvn8Rdzbg,19291
4
4
  anaconda_auth-0.15.3.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
- ../../Scripts/anaconda.exe,sha256=haXoOG9F5qI2fnRWiCpPk55-c3h-ZyeOVgkqVlKcVWY,47616
1
+ ../../Scripts/anaconda.exe,sha256=bRi1VRLQNXTJ2YOBwXEbnNSW2VkdNApQBx5viNK_1OE,47616
2
2
  anaconda_cli_base-0.9.1.dist-info/INSTALLER,sha256=5hhM4Q4mYTT9z6QB6PGpUAW81PGNFrYrdXMj4oM_6ak,2
3
3
  anaconda_cli_base-0.9.1.dist-info/METADATA,sha256=hLUvsGTgluivU34zKEv6Cv0Y6kgPk2kaeDkOvLtUFFo,17366
4
4
  anaconda_cli_base-0.9.1.dist-info/RECORD,,
@@ -120,6 +120,14 @@ def main():
120
120
 
121
121
  activate_anon_usage()
122
122
 
123
+ # Make `auth: anaconda-desktop-bridge` available to conda: it sends the
124
+ # signed-in user's current API key to repo.anaconda.cloud (never a repo
125
+ # token), re-read for every operation. Safe when anaconda-auth is missing:
126
+ # it logs and returns False.
127
+ from anaconda_desktop_bridge.conda.auth_plugin import register as register_auth_handler
128
+
129
+ register_auth_handler()
130
+
123
131
  # Initialize telemetry BEFORE importing features so the instrumentation
124
132
  # context is ready when @method handlers register. The call is safe even
125
133
  # when anaconda-opentelemetry is not installed — it degrades to a no-op.
@@ -5,6 +5,7 @@ from anaconda_desktop_bridge.conda.operations.channels import (
5
5
  add_channel,
6
6
  list_channels,
7
7
  remove_channel,
8
+ resolve_channel,
8
9
  )
9
10
  from anaconda_desktop_bridge.conda.operations.clone import clone
10
11
  from anaconda_desktop_bridge.conda.operations.config_add import config_add
@@ -48,6 +49,7 @@ __all__ = [
48
49
  "remove",
49
50
  "remove_channel",
50
51
  "repodata_find",
52
+ "resolve_channel",
51
53
  "resolve_repodata_sources",
52
54
  "save_token",
53
55
  "update",
@@ -0,0 +1,219 @@
1
+ """Conda auth handler for ``repo.anaconda.cloud``: the signed-in user's API key only.
2
+
3
+ Why
4
+ ---
5
+ Org package policies on ``repo.anaconda.cloud`` are enforced server-side for
6
+ requests authenticated with the user's **API key** (DESK-3110). Kilo Desktop
7
+ signs users in with an API key and does not use repo tokens. anaconda-auth's own
8
+ handler (0.15.3) is close, but not usable as is in a long-running process:
9
+
10
+ - it caches the credential for the life of the handler, and conda caches the
11
+ handler's session for the life of the process. A user who signs in (or out)
12
+ while the bridge runs keeps sending the old credential, or none, until the
13
+ bridge restarts;
14
+ - on a 401/403 it retries with a repo token from the keyring or the conda-token
15
+ store, and it sends a repo token when no API key is stored.
16
+
17
+ What
18
+ ----
19
+ :class:`BridgeAuthHandler` subclasses anaconda-auth's ``AnacondaAuthHandler``
20
+ and, for ``repo.anaconda.cloud`` only:
21
+
22
+ 1. sends ``Authorization: Bearer <api key>``: ``ANACONDA_AUTH_API_KEY`` when
23
+ set, else the API key in the anaconda-auth keyring (``TokenInfo.api_key``)
24
+ for the channel's auth domain;
25
+ 2. reads that key once per bridge operation, so a sign-in, sign-out or key
26
+ change applies to the next operation;
27
+ 3. sends **nothing** when no API key is stored, and never sends a repo token.
28
+ A refused request (401/403) is never retried with another credential: it
29
+ fails the operation with ``not_signed_in`` (nothing was sent) or
30
+ ``access_denied`` (the key was sent and refused).
31
+
32
+ A condarc ``credential_type`` for this handler is ignored; ``auth_domain`` is
33
+ honored, as anaconda-auth does. Other hosts are inherited unchanged from
34
+ anaconda-auth, including its 401/403 handling and error messages.
35
+
36
+ Every choice and every 401/403 is recorded in
37
+ :mod:`~anaconda_desktop_bridge.conda.repo_credentials` for the running
38
+ operation.
39
+
40
+ conda only routes a URL to this handler when ``channel_settings`` says
41
+ ``auth: anaconda-desktop-bridge`` for it (the payload's ``condarc.d`` rule, #80).
42
+ :mod:`~anaconda_desktop_bridge.conda.auth_plugin` registers it at startup.
43
+
44
+ This module imports anaconda-auth (and conda) at import time; import it
45
+ lazily, as ``auth_plugin`` does.
46
+ """
47
+
48
+ from __future__ import annotations
49
+
50
+ import logging
51
+ import os
52
+ import threading
53
+ from collections.abc import Iterable
54
+ from typing import Any
55
+ from urllib.parse import urlparse
56
+
57
+ from anaconda_auth._conda.auth_handler import (
58
+ REPO_ANACONDA_CLOUD,
59
+ AnacondaAuthError,
60
+ AnacondaAuthHandler,
61
+ )
62
+ from anaconda_auth._conda.config import CredentialType
63
+ from anaconda_auth.exceptions import TokenNotFoundError
64
+ from anaconda_auth.token import TokenInfo
65
+ from conda import plugins
66
+ from conda.common.url import mask_anaconda_token
67
+ from conda.plugins.types import CondaAuthHandler
68
+
69
+ from anaconda_desktop_bridge.conda import repo_credentials
70
+ from anaconda_desktop_bridge.conda.repo_credentials import AuthFailure, CredentialChoice
71
+
72
+ logger = logging.getLogger(__name__)
73
+
74
+ HANDLER_NAME = "anaconda-desktop-bridge"
75
+
76
+ # anaconda-auth's environment override for the API key.
77
+ API_KEY_ENV = "ANACONDA_AUTH_API_KEY"
78
+
79
+ # Anaconda channels on repo.anaconda.cloud that belong to no org.
80
+ SHARED_CHANNELS = frozenset({"main", "main-x", "r", "msys2"})
81
+ _REPO_PATH_PREFIX = "/repo/"
82
+ _AUTH_ERROR_STATUSES = frozenset({401, 403})
83
+
84
+
85
+ def org_from_url(url: str) -> str | None:
86
+ """Org of a ``repo.anaconda.cloud/repo/{org}/{channel}`` URL.
87
+
88
+ None for shared Anaconda channels (``repo/main``, ...) and for any path
89
+ outside ``/repo/``. Used only to describe a refused request.
90
+ """
91
+ path = urlparse(url).path
92
+ if not path.startswith(_REPO_PATH_PREFIX):
93
+ return None
94
+ org = path[len(_REPO_PATH_PREFIX) :].partition("/")[0]
95
+ if not org or org.lower() in SHARED_CHANNELS:
96
+ return None
97
+ return org
98
+
99
+
100
+ def read_api_key(domain: str) -> str | None:
101
+ """The API key stored in the anaconda-auth keyring for ``domain``, or None."""
102
+ try:
103
+ info = TokenInfo.load(domain)
104
+ except TokenNotFoundError:
105
+ return None
106
+ return info.api_key or None
107
+
108
+
109
+ # API keys, read at most once per (operation, domain). Keyed by
110
+ # repo_credentials.generation(), which every operation bumps.
111
+ _keys_lock = threading.Lock()
112
+ _keys_cache: dict[tuple[int, str], str | None] = {}
113
+
114
+
115
+ def api_key(domain: str) -> str | None:
116
+ """:func:`read_api_key`, cached for the running operation.
117
+
118
+ Outside an operation scope nothing is cached, so a caller that bypasses
119
+ ``run_exclusive`` never sees a stale key.
120
+ """
121
+ if repo_credentials.current_operation() is None:
122
+ return read_api_key(domain)
123
+ key = (repo_credentials.generation(), domain)
124
+ with _keys_lock:
125
+ if key in _keys_cache:
126
+ return _keys_cache[key]
127
+ value = read_api_key(domain)
128
+ with _keys_lock:
129
+ if any(k[0] != key[0] for k in _keys_cache):
130
+ _keys_cache.clear()
131
+ _keys_cache[key] = value
132
+ return value
133
+
134
+
135
+ def select_credential(url: str, domain: str) -> tuple[CredentialChoice, str | None]:
136
+ """Choose the credential for a ``repo.anaconda.cloud`` request.
137
+
138
+ Returns the choice (what is recorded) and the API key to send, or ``None``
139
+ when no API key is available: then nothing is sent. Never chooses a repo
140
+ token; never raises for a missing credential.
141
+ """
142
+ org = org_from_url(url)
143
+ if env_key := os.environ.get(API_KEY_ENV):
144
+ return (
145
+ CredentialChoice(repo_credentials.API_KEY, org=org, source=repo_credentials.SOURCE_ENV),
146
+ env_key,
147
+ )
148
+ if stored := api_key(domain):
149
+ return (
150
+ CredentialChoice(
151
+ repo_credentials.API_KEY, org=org, source=repo_credentials.SOURCE_KEYRING
152
+ ),
153
+ stored,
154
+ )
155
+ return CredentialChoice(repo_credentials.NONE, org=org), None
156
+
157
+
158
+ class RepoAuthError(AnacondaAuthError):
159
+ """``repo.anaconda.cloud`` answered 401/403: not signed in, or the API key was refused.
160
+
161
+ An anaconda-auth error (so conda treats it like anaconda-auth's own), with
162
+ the :class:`~anaconda_desktop_bridge.conda.repo_credentials.AuthFailure` as
163
+ ``repo_auth_failure`` for the bridge's classification.
164
+ """
165
+
166
+ def __init__(self, failure: AuthFailure):
167
+ super().__init__(failure.message)
168
+ self.repo_auth_failure = failure
169
+
170
+
171
+ class BridgeAuthHandler(AnacondaAuthHandler):
172
+ """anaconda-auth's handler, sending only the current API key to ``repo.anaconda.cloud``."""
173
+
174
+ def _build_header(self, url: str) -> tuple[str | None, CredentialType]: # type: ignore[override]
175
+ parsed = urlparse(url)
176
+ if parsed.netloc.lower() != REPO_ANACONDA_CLOUD:
177
+ return super()._build_header(url)
178
+
179
+ try:
180
+ token_domain, _ = self._load_token_domain(parsed)
181
+ choice, value = select_credential(url, token_domain)
182
+ except Exception:
183
+ # Same resilience as anaconda-auth: send no credential rather than
184
+ # failing here; the 401/403 then fails the operation.
185
+ logger.warning("Could not read the API key for %s", REPO_ANACONDA_CLOUD, exc_info=True)
186
+ choice, value = CredentialChoice(repo_credentials.NONE, org=org_from_url(url)), None
187
+
188
+ repo_credentials.record(choice)
189
+ if value is None:
190
+ return None, CredentialType.API_KEY
191
+ return f"Bearer {value}", CredentialType.API_KEY
192
+
193
+ def _build_response_handler(self, credential_type: CredentialType): # type: ignore[override]
194
+ inherited = super()._build_response_handler(credential_type)
195
+
196
+ def handler(response: Any, **kwargs: Any) -> Any:
197
+ """Fail a refused ``repo.anaconda.cloud`` request; never retry it."""
198
+ if response.status_code in _AUTH_ERROR_STATUSES:
199
+ request = response.request
200
+ url = (request.url if request is not None else None) or ""
201
+ if urlparse(url).netloc.lower() == REPO_ANACONDA_CLOUD:
202
+ sent = request is not None and bool(request.headers.get("Authorization"))
203
+ failure = AuthFailure(
204
+ channel=mask_anaconda_token(self.channel_name) if self.channel_name else None,
205
+ org=org_from_url(url),
206
+ status=response.status_code,
207
+ credential=repo_credentials.API_KEY if sent else repo_credentials.NONE,
208
+ )
209
+ repo_credentials.record_auth_failure(failure)
210
+ raise RepoAuthError(failure)
211
+ return inherited(response, **kwargs)
212
+
213
+ return handler
214
+
215
+
216
+ @plugins.hookimpl
217
+ def conda_auth_handlers() -> Iterable[CondaAuthHandler]:
218
+ """Expose :class:`BridgeAuthHandler` as ``auth: anaconda-desktop-bridge``."""
219
+ yield CondaAuthHandler(name=HANDLER_NAME, handler=BridgeAuthHandler)
@@ -0,0 +1,50 @@
1
+ """Register the bridge's conda auth handler at startup.
2
+
3
+ conda discovers plugins through the ``conda`` entry-point group, which the
4
+ bridge (a package, not a conda plugin distribution) does not publish. So
5
+ :func:`register` adds :mod:`~anaconda_desktop_bridge.conda.auth_handler` to
6
+ conda's process-wide plugin manager directly. That manager is cached for the
7
+ process, so registration survives every ``reset_context``.
8
+
9
+ Registering only makes ``auth: anaconda-desktop-bridge`` available. conda uses
10
+ the handler for ``repo.anaconda.cloud`` once ``channel_settings`` routes that
11
+ host to it (the payload's ``condarc.d`` rule, #80).
12
+ """
13
+
14
+ from __future__ import annotations
15
+
16
+ import logging
17
+
18
+ logger = logging.getLogger(__name__)
19
+
20
+ PLUGIN_NAME = "anaconda-desktop-bridge-auth"
21
+
22
+
23
+ def register() -> bool:
24
+ """Register the auth handler with conda. Idempotent; never raises.
25
+
26
+ Returns True when the handler is available to conda, False when
27
+ anaconda-auth is not installed or registration failed.
28
+ """
29
+ try:
30
+ try:
31
+ from anaconda_desktop_bridge.conda import auth_handler
32
+ except ImportError:
33
+ logger.info(
34
+ "anaconda-auth not installed; repo.anaconda.cloud auth handler not registered"
35
+ )
36
+ return False
37
+
38
+ from conda.base.context import context
39
+
40
+ plugin_manager = context.plugin_manager
41
+ if plugin_manager.get_plugin(PLUGIN_NAME) is None:
42
+ plugin_manager.register(auth_handler, name=PLUGIN_NAME)
43
+ logger.info(
44
+ "Registered conda auth handler %r (repo.anaconda.cloud: API key only)",
45
+ auth_handler.HANDLER_NAME,
46
+ )
47
+ return True
48
+ except Exception:
49
+ logger.warning("Failed to register the conda auth handler", exc_info=True)
50
+ return False
@@ -30,6 +30,9 @@ import asyncio
30
30
  from collections.abc import Callable
31
31
  from typing import Any
32
32
 
33
+ from anaconda_desktop_bridge.conda import repo_credentials
34
+ from anaconda_desktop_bridge.errors import BridgeError
35
+
33
36
  # An asyncio.Lock is bound to the event loop it is first used on, so it is
34
37
  # created lazily on the running loop rather than at import time. The bridge
35
38
  # runs a single, long-lived event loop, so this yields exactly one lock for the
@@ -48,6 +51,28 @@ def _conda_lock() -> asyncio.Lock:
48
51
  return _lock
49
52
 
50
53
 
54
+ def _as_operation(fn: Callable[..., Any], *args: Any, **kwargs: Any) -> Any:
55
+ """Run ``fn`` as one bridge operation for repo-credential tracking.
56
+
57
+ Holding the conda lock is what makes the process-wide scope in
58
+ ``repo_credentials`` safe: no other operation can record into it.
59
+
60
+ An exception caused by ``repo.anaconda.cloud`` refusing a request (not
61
+ signed in, or the API key was refused) is raised as ``auth:not-signed-in``
62
+ / ``auth:access-denied`` instead of an unclassified internal error.
63
+ """
64
+ with repo_credentials.operation_scope(getattr(fn, "__name__", "operation")):
65
+ try:
66
+ return fn(*args, **kwargs)
67
+ except BridgeError:
68
+ raise
69
+ except Exception as error:
70
+ failure = repo_credentials.auth_failure(error)
71
+ if failure is None:
72
+ raise
73
+ raise failure.to_bridge_error() from error
74
+
75
+
51
76
  async def run_exclusive(fn: Callable[..., Any], *args: Any, **kwargs: Any) -> Any:
52
77
  """Run a blocking conda callable under the process-wide conda lock.
53
78
 
@@ -63,7 +88,7 @@ async def run_exclusive(fn: Callable[..., Any], *args: Any, **kwargs: Any) -> An
63
88
  caller.
64
89
  """
65
90
  async with _conda_lock():
66
- worker = asyncio.ensure_future(asyncio.to_thread(fn, *args, **kwargs))
91
+ worker = asyncio.ensure_future(asyncio.to_thread(_as_operation, fn, *args, **kwargs))
67
92
  try:
68
93
  return await asyncio.shield(worker)
69
94
  except asyncio.CancelledError: