@episoda/cli 0.2.147 → 0.2.149

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.
@@ -2913,7 +2913,7 @@ var require_package = __commonJS({
2913
2913
  "package.json"(exports2, module2) {
2914
2914
  module2.exports = {
2915
2915
  name: "@episoda/cli",
2916
- version: "0.2.146",
2916
+ version: "0.2.149",
2917
2917
  description: "CLI tool for Episoda local development workflow orchestration",
2918
2918
  main: "dist/index.js",
2919
2919
  types: "dist/index.d.ts",
@@ -11154,6 +11154,11 @@ var Daemon = class _Daemon {
11154
11154
  console.log(`[Daemon] EP1319: Update available (${packageJson.version} \u2192 ${targetVersion}) but ${activeAgentSessions} active agent session(s) \u2014 deferring`);
11155
11155
  return;
11156
11156
  }
11157
+ const currentInstalled = getInstalledVersion();
11158
+ if (currentInstalled && currentInstalled === targetVersion) {
11159
+ console.log(`[Daemon] EP1343: Already installed version ${targetVersion} (embedded: ${packageJson.version}), skipping update`);
11160
+ return;
11161
+ }
11157
11162
  this.updateInProgress = true;
11158
11163
  console.log(`[Daemon] EP1319: Applying CLI update (${source}) to ${targetVersion} (idle)`);
11159
11164
  try {
@@ -11650,9 +11655,9 @@ var Daemon = class _Daemon {
11650
11655
  } else {
11651
11656
  const serverUrlObj = new URL(serverUrl);
11652
11657
  const wsProtocol = serverUrlObj.protocol === "https:" ? "wss:" : "ws:";
11653
- const wsPort = process.env.EPISODA_WS_PORT || "3001";
11654
11658
  const wsHostname = serverUrlObj.hostname === "episoda.dev" ? "ws.episoda.dev" : serverUrlObj.hostname;
11655
- wsUrl = `${wsProtocol}//${wsHostname}:${wsPort}`;
11659
+ const wsPort = process.env.EPISODA_WS_PORT;
11660
+ wsUrl = wsPort ? `${wsProtocol}//${wsHostname}:${wsPort}` : `${wsProtocol}//${wsHostname}`;
11656
11661
  }
11657
11662
  console.log(`[Daemon] Connecting to ${wsUrl} for project ${projectId}...`);
11658
11663
  const client = new import_core14.EpisodaClient();