@axiomatic-labs/claudeflow 2.32.0 → 2.32.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.
Files changed (2) hide show
  1. package/lib/preview.js +8 -1
  2. package/package.json +1 -1
package/lib/preview.js CHANGED
@@ -303,7 +303,14 @@ async function preview(argv = []) {
303
303
  resolve();
304
304
  });
305
305
  };
306
- tryListen(wantPort || 4321, !wantPort);
306
+ // Default to an UNCOMMON port (4793) to avoid squatting a port the project's
307
+ // dev server wants (e.g. 4321=Astro, 5173=Vite, 3000=Next, 4200=Angular).
308
+ // --port is strict (no fallback — the user demanded it); the default + the
309
+ // CLAUDEFLOW_PREVIEW_PORT override fall back to an OS-assigned free port if taken,
310
+ // so preview NEVER collides with a running dev server.
311
+ const envPort = Number(process.env.CLAUDEFLOW_PREVIEW_PORT) || 0;
312
+ const preferred = wantPort || envPort || 4793;
313
+ tryListen(preferred, !wantPort);
307
314
  });
308
315
 
309
316
  const shutdown = () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@axiomatic-labs/claudeflow",
3
- "version": "2.32.0",
3
+ "version": "2.32.2",
4
4
  "description": "Claudeflow — AI-powered development toolkit for Claude Code. Skills, agents, hooks, and quality gates that ship production apps.",
5
5
  "bin": {
6
6
  "claudeflow": "./bin/cli.js"