@sylphx/flow 2.1.9 → 2.1.11

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
@@ -1,5 +1,18 @@
1
1
  # @sylphx/flow
2
2
 
3
+ ## 2.1.11 (2025-11-29)
4
+
5
+ ### šŸ› Bug Fixes
6
+
7
+ - **mcp:** remove --mcp-config flag, rely on project .mcp.json ([b11af31](https://github.com/SylphxAI/flow/commit/b11af31b1f31551e820e03d6a9404382656aef93))
8
+
9
+ ## 2.1.10 (2025-11-28)
10
+
11
+ ### šŸ› Bug Fixes
12
+
13
+ - **upgrade:** prevent recursive self-upgrade with env flag ([43416fa](https://github.com/SylphxAI/flow/commit/43416faabf18a6ba93c4c739a7fe1300aa63cb60))
14
+ - **upgrade:** re-exec process after self-upgrade ([d2111f8](https://github.com/SylphxAI/flow/commit/d2111f800eb91e0b377d4e434ccdb214d71a1d27))
15
+
3
16
  ## 2.1.9 (2025-11-28)
4
17
 
5
18
  ### šŸ› Bug Fixes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sylphx/flow",
3
- "version": "2.1.9",
3
+ "version": "2.1.11",
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) {
@@ -207,9 +207,8 @@ Please begin your response with a comprehensive summary of all the instructions
207
207
  // Build arguments
208
208
  const args = ['--dangerously-skip-permissions'];
209
209
 
210
- // Add MCP config flag to explicitly load project MCP servers
211
- const mcpConfigPath = path.join(process.cwd(), this.config.configFile);
212
- args.push('--mcp-config', mcpConfigPath);
210
+ // MCP servers are loaded automatically from .mcp.json at project root
211
+ // (written by attach-manager before executing Claude Code)
213
212
 
214
213
  // Add print and continue flags
215
214
  if (options.print) {