MCPcopy Index your code
hub / github.com/Wakotu/Official_Component_Download

github.com/Wakotu/Official_Component_Download @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
98 symbols 212 edges 19 files 2 documented · 2%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Download Opensource Components from Official site

Prerequisites

通过 rustup 安装新版本的 cargo.

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

[!NOTE] 遇到错误提示输入 y 回车即可。安装完成后需要重启终端。

Usage

创建config/config.toml 。具体格式参照 config/config_demo.toml。需要指定的域包括如下几项:

[download]
username = "your_name"
base_dir = "path/to/dest"

[api]
key = "xxxxxx"
api_url = "xxxxxx"
model_id = "your model id" # e.g. "chatgpt-3.5-turbo"

运行 run.sh

./run.sh

Output

通过 LLM 查询到的下载页面地址会被保存到 Official/available_url_list.json 文件中。 从页面中找不到下载链接的下载页面地址会被保存到 Official/abnormal_url_list. 文件中。

Core symbols most depended-on inside this repo

load_config
called by 12
src/config.rs
init_report_utils
called by 6
src/utils.rs
eq
called by 5
src/download/download_link/entities.rs
construct_semaphore
called by 4
src/utils.rs
get_llm_completion
called by 4
src/llm_api/mod.rs
get_offical_dl_dir
called by 4
src/download/file_download/path.rs
get_api_retry_delay
called by 3
src/llm_api/config.rs
create_dir_if_nonexist
called by 3
src/download/file_download/path.rs

Shape

Function 56
Method 29
Class 12
Enum 1

Languages

Rust100%

Modules by API surface

src/download/download_link/mod.rs13 symbols
src/llm_api/config.rs10 symbols
src/download/download_link/entities.rs10 symbols
src/utils.rs8 symbols
src/llm_api/entities.rs8 symbols
src/download/file_download/path.rs8 symbols
src/download/file_download/mod.rs8 symbols
src/config.rs7 symbols
src/download/mod.rs5 symbols
src/download/download_page/entities.rs5 symbols
src/download/download_page/mod.rs4 symbols
src/llm_api/mod.rs3 symbols

For agents

$ claude mcp add Official_Component_Download \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact