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 +5 -0
- package/package.json +1 -1
- package/scripts/agileflow-welcome.js +21 -3
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -495,18 +495,36 @@ function getChangelogEntries(version) {
|
|
|
495
495
|
|
|
496
496
|
// Run auto-update if enabled
|
|
497
497
|
async function runAutoUpdate(rootDir) {
|
|
498
|
-
|
|
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;
|