agileflow 2.84.1 → 2.84.2

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/CHANGELOG.md CHANGED
@@ -7,6 +7,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [2.84.2] - 2026-01-11
11
+
12
+ ### Fixed
13
+ - Auto-update retry with npm cache clean on stale registry
14
+
10
15
  ## [2.84.1] - 2026-01-11
11
16
 
12
17
  ### Fixed
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agileflow",
3
- "version": "2.84.1",
3
+ "version": "2.84.2",
4
4
  "description": "AI-driven agile development system for Claude Code, Cursor, Windsurf, and more",
5
5
  "keywords": [
6
6
  "agile",
@@ -495,18 +495,36 @@ function getChangelogEntries(version) {
495
495
 
496
496
  // Run auto-update if enabled
497
497
  async function runAutoUpdate(rootDir) {
498
- try {
499
- console.log(`${c.skyBlue}Updating AgileFlow...${c.reset}`);
500
- // Use --force to skip prompts for non-interactive auto-update
498
+ const runUpdate = () => {
501
499
  execSync('npx agileflow@latest update --force', {
502
500
  cwd: rootDir,
503
501
  encoding: 'utf8',
504
502
  stdio: 'inherit',
505
503
  timeout: 120000, // 2 minute timeout
506
504
  });
505
+ };
506
+
507
+ try {
508
+ console.log(`${c.skyBlue}Updating AgileFlow...${c.reset}`);
509
+ // Use --force to skip prompts for non-interactive auto-update
510
+ runUpdate();
507
511
  console.log(`${c.mintGreen}Update complete!${c.reset}`);
508
512
  return true;
509
513
  } catch (e) {
514
+ // Check if this is a stale npm cache issue (ETARGET = version not found)
515
+ if (e.message && (e.message.includes('ETARGET') || e.message.includes('notarget'))) {
516
+ console.log(`${c.dim}Clearing npm cache and retrying...${c.reset}`);
517
+ try {
518
+ execSync('npm cache clean --force', { stdio: 'pipe', timeout: 30000 });
519
+ runUpdate();
520
+ console.log(`${c.mintGreen}Update complete!${c.reset}`);
521
+ return true;
522
+ } catch (retryError) {
523
+ console.log(`${c.peach}Auto-update failed after cache clean: ${retryError.message}${c.reset}`);
524
+ console.log(`${c.dim}Run manually: npx agileflow update${c.reset}`);
525
+ return false;
526
+ }
527
+ }
510
528
  console.log(`${c.peach}Auto-update failed: ${e.message}${c.reset}`);
511
529
  console.log(`${c.dim}Run manually: npx agileflow update${c.reset}`);
512
530
  return false;