@sylphx/flow 2.1.9 ā 2.1.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.
- package/CHANGELOG.md +7 -0
- package/package.json +1 -1
- package/src/services/auto-upgrade.ts +13 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
1
|
# @sylphx/flow
|
|
2
2
|
|
|
3
|
+
## 2.1.10 (2025-11-28)
|
|
4
|
+
|
|
5
|
+
### š Bug Fixes
|
|
6
|
+
|
|
7
|
+
- **upgrade:** prevent recursive self-upgrade with env flag ([43416fa](https://github.com/SylphxAI/flow/commit/43416faabf18a6ba93c4c739a7fe1300aa63cb60))
|
|
8
|
+
- **upgrade:** re-exec process after self-upgrade ([d2111f8](https://github.com/SylphxAI/flow/commit/d2111f800eb91e0b377d4e434ccdb214d71a1d27))
|
|
9
|
+
|
|
3
10
|
## 2.1.9 (2025-11-28)
|
|
4
11
|
|
|
5
12
|
### š Bug Fixes
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sylphx/flow",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.10",
|
|
4
4
|
"description": "One CLI to rule them all. Unified orchestration layer for Claude Code, OpenCode, Cursor and all AI development tools. Auto-detection, auto-installation, auto-upgrade.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -232,8 +232,19 @@ export class AutoUpgrade {
|
|
|
232
232
|
if (status.flowNeedsUpgrade || status.targetNeedsUpgrade) {
|
|
233
233
|
console.log(chalk.cyan('\nš¦ Installing updates...\n'));
|
|
234
234
|
|
|
235
|
-
if (status.flowNeedsUpgrade) {
|
|
236
|
-
await this.upgradeFlow();
|
|
235
|
+
if (status.flowNeedsUpgrade && !process.env.SYLPHX_FLOW_UPGRADED) {
|
|
236
|
+
const upgraded = await this.upgradeFlow();
|
|
237
|
+
if (upgraded) {
|
|
238
|
+
// Re-exec the process to use the new version
|
|
239
|
+
console.log(chalk.cyan('\nš Restarting with updated version...\n'));
|
|
240
|
+
const { spawn } = await import('node:child_process');
|
|
241
|
+
const child = spawn(process.argv[0], process.argv.slice(1), {
|
|
242
|
+
stdio: 'inherit',
|
|
243
|
+
env: { ...process.env, SYLPHX_FLOW_UPGRADED: '1' },
|
|
244
|
+
});
|
|
245
|
+
child.on('exit', (code) => process.exit(code ?? 0));
|
|
246
|
+
return; // Don't continue with old code
|
|
247
|
+
}
|
|
237
248
|
}
|
|
238
249
|
|
|
239
250
|
if (status.targetNeedsUpgrade && targetId) {
|