Skip to content

Commit e49997a

Browse files
committed
fix: use direct GitHub archive URL instead of API endpoint to avoid rate limits
1 parent 45ab30e commit e49997a

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

install.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -459,7 +459,7 @@ download_skills_batch() {
459459

460460
# Download entire repo as tarball (single request)
461461
print_info "Downloading skills package..."
462-
curl -fsSL "https://api.github.com/repos/ReScienceLab/opc-skills/tarball" \
462+
curl -fsSL "https://github.com/ReScienceLab/opc-skills/archive/refs/heads/main.tar.gz" \
463463
-o "$temp_tar" 2>/dev/null || {
464464
print_error "Failed to download skills package"
465465
return 1
@@ -473,8 +473,8 @@ download_skills_batch() {
473473
return 1
474474
}
475475

476-
# Find extracted directory (contains commit hash in name)
477-
local extracted_dir=$(ls -d "$temp_dir"/ReScienceLab-opc-skills-* 2>/dev/null | head -1)
476+
# Find extracted directory (opc-skills-main for direct archive URL)
477+
local extracted_dir=$(ls -d "$temp_dir"/opc-skills-* 2>/dev/null | head -1)
478478

479479
if [ -z "$extracted_dir" ] || [ ! -d "$extracted_dir/skills" ]; then
480480
print_error "Invalid skills package structure"

0 commit comments

Comments
 (0)