@rubytech/taskmaster 1.17.9 → 1.17.10

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.17.9",
3
- "commit": "2aec1cdf9bf18ed0f6adc56347ba5e2a746b5f8f",
4
- "builtAt": "2026-03-05T16:01:48.216Z"
2
+ "version": "1.17.10",
3
+ "commit": "09e41f83ec85775a3f01997ed008c699dc6e60e4",
4
+ "builtAt": "2026-03-05T16:13:13.586Z"
5
5
  }
@@ -455,7 +455,13 @@ export async function runGatewayUpdate(opts = {}) {
455
455
  }
456
456
  const spec = `@rubytech/taskmaster@${normalizeTag(opts.tag)}`;
457
457
  const installArgv = globalInstallArgs(globalManager, spec, needsSudo);
458
- const updateStep = await runStep({
458
+ // npm CDN propagation can take 2–10 minutes after publish: the package
459
+ // metadata resolves immediately but the tarball may 404 at some CDN nodes.
460
+ // Retry up to 3 times with a 60-second delay on E404 so the update
461
+ // completes without requiring user intervention.
462
+ const MAX_RETRIES = 3;
463
+ const RETRY_DELAY_MS = 60_000;
464
+ let updateStep = await runStep({
459
465
  runCommand,
460
466
  name: installArgv.join(" "),
461
467
  argv: installArgv,
@@ -466,6 +472,23 @@ export async function runGatewayUpdate(opts = {}) {
466
472
  stepIndex: 0,
467
473
  totalSteps: 1,
468
474
  });
475
+ for (let attempt = 1; attempt <= MAX_RETRIES && updateStep.exitCode !== 0; attempt++) {
476
+ const isE404 = (updateStep.stderrTail ?? "").includes("E404");
477
+ if (!isE404)
478
+ break;
479
+ await new Promise((resolve) => setTimeout(resolve, RETRY_DELAY_MS));
480
+ updateStep = await runStep({
481
+ runCommand,
482
+ name: `${installArgv.join(" ")} (retry ${attempt}/${MAX_RETRIES})`,
483
+ argv: installArgv,
484
+ cwd: pkgRoot,
485
+ timeoutMs,
486
+ env: { PATH: augmentedPath },
487
+ progress,
488
+ stepIndex: 0,
489
+ totalSteps: 1,
490
+ });
491
+ }
469
492
  const steps = [updateStep];
470
493
  const afterVersion = await readPackageVersion(pkgRoot);
471
494
  // Post-install verification: check for issues even when exit code is 0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rubytech/taskmaster",
3
- "version": "1.17.9",
3
+ "version": "1.17.10",
4
4
  "description": "AI-powered business assistant for small businesses",
5
5
  "publishConfig": {
6
6
  "access": "public"