@andrian.yablonskyy/thub-agent 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@andrian.yablonskyy/thub-agent",
3
- "version": "1.0.29",
3
+ "version": "1.0.30",
4
4
  "description": "TestHub Agent CLI — the single entry point CI/CD and developers use to submit and follow test jobs",
5
5
  "bin": {
6
6
  "thub": "./src/cli.js"
@@ -12,7 +12,7 @@
12
12
  "lint:fix": "eslint . --fix"
13
13
  },
14
14
  "dependencies": {
15
- "@andrian.yablonskyy/thub-common": "^1.0.29",
15
+ "@andrian.yablonskyy/thub-common": "^1.0.30",
16
16
  "commander": "^13.1.0"
17
17
  },
18
18
  "devDependencies": {
@@ -28,12 +28,12 @@ const NPM_STDIO = ['inherit', 2, 2],
28
28
  // for a system-wide install. Never throws — returns whether it worked.
29
29
  function installAgent(target){
30
30
  try {
31
- if (npmInstallGlobal(PACKAGES.agent, target, { stdio: NPM_STDIO }) === 0){
31
+ if (npmInstallGlobal(PACKAGES.agent, target, { stdio: NPM_STDIO, retryDelaysSec: [] }) === 0){
32
32
  return true;
33
33
  }
34
34
  if (process.getuid?.() !== 0 && process.stdin.isTTY){
35
35
  console.error('thub: retrying with sudo');
36
- return spawnSync('sudo', [npmBin(), 'i', '-g', `${PACKAGES.agent}@${target}`], { stdio: NPM_STDIO }).status === 0;
36
+ return spawnSync('sudo', [npmBin(), 'i', '-g', '--prefer-online', `${PACKAGES.agent}@${target}`], { stdio: NPM_STDIO }).status === 0;
37
37
  }
38
38
  }
39
39
  catch (err){