@delta-infra/cli 1.0.29 → 1.0.30

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/checksums.txt CHANGED
@@ -1,5 +1,5 @@
1
- 82da0807522c3068c884fa45d66db62d959626b6441e353205c01b7300e140d1 delta-cli-darwin-amd64.tar.gz
2
- 201cfa4569414aac3425bfd63aed7b787fb45d7f0c61bd6a89b4cc6ca34fb257 delta-cli-darwin-arm64.tar.gz
3
- f34625f968474c61f5c30fbe76db61b12660ee4e42ed65992d961de0608c19b9 delta-cli-linux-amd64.tar.gz
4
- db07f3b7fe47af0387cbaf984c000a09fc50920f506c969ea9c4bc07b7d90be8 delta-cli-linux-arm64.tar.gz
5
- f50337759b256f7a87ac4f5a0a302f5c0fe947e934442c5ed2cf12890020476f delta-cli-windows-amd64.zip
1
+ 619dded6dd11db1c6890b3cc37ce103f4644502861a3171fc594fcfd5447f10e delta-cli-darwin-amd64.tar.gz
2
+ c67b7bb962b33a84e3e8a8674d74ae44c3a1a9943ff5fa1510a4bfe9248a7d25 delta-cli-darwin-arm64.tar.gz
3
+ c438cb04b7600a19746fcdfb3d1b8a6a14dfb7944f21090476df7c809dfe2af7 delta-cli-linux-amd64.tar.gz
4
+ 514bce5681f3838549296323c6f8f4f8dd7f7a4ccafcbe49d67393d8829001df delta-cli-linux-arm64.tar.gz
5
+ a232f0249968601038e655ff57316eeeb7b95e6ed37367fd2efd01775115878f delta-cli-windows-amd64.zip
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delta-infra/cli",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "Delta Sandbox CLI",
5
5
  "bin": {
6
6
  "delta-cli": "scripts/run.js"
@@ -233,18 +233,26 @@ async function stepInstallSkills(msg) {
233
233
  s.stop(msg.step2Skip);
234
234
  return;
235
235
  }
236
- try {
237
- await runSilentAsync("npx", ["-y", "skills", "add", SKILLS_REPO, "-y", "-g"], {
238
- timeout: 120000,
239
- });
240
- } catch {
241
- // Retry with GitHub URL directly
242
- await runSilentAsync("npx", [
243
- "-y", "skills", "add",
244
- `https://github.com/${SKILLS_REPO}`, "-y", "-g",
245
- ], { timeout: 120000 });
236
+ const GH_PROXY = "https://gh-proxy.com/https://github.com";
237
+ const urls = [
238
+ `${GH_PROXY}/${SKILLS_REPO}`,
239
+ SKILLS_REPO,
240
+ `https://github.com/${SKILLS_REPO}`,
241
+ ];
242
+ let lastErr;
243
+ for (const url of urls) {
244
+ try {
245
+ await runSilentAsync("npx", ["-y", "skills", "add", url, "-y", "-g"], {
246
+ timeout: 120000,
247
+ env: { ...process.env, GIT_TERMINAL_PROMPT: "0" },
248
+ });
249
+ s.stop(msg.step2Done);
250
+ return;
251
+ } catch (e) {
252
+ lastErr = e;
253
+ }
246
254
  }
247
- s.stop(msg.step2Done);
255
+ throw lastErr;
248
256
  } catch {
249
257
  s.stop(fmt(msg.step2Fail, SKILLS_REPO));
250
258
  process.exit(1);