episoda 0.2.77 → 0.2.80

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.
@@ -2748,7 +2748,7 @@ var require_package = __commonJS({
2748
2748
  "package.json"(exports2, module2) {
2749
2749
  module2.exports = {
2750
2750
  name: "episoda",
2751
- version: "0.2.77",
2751
+ version: "0.2.80",
2752
2752
  description: "CLI tool for Episoda local development workflow orchestration",
2753
2753
  main: "dist/index.js",
2754
2754
  types: "dist/index.d.ts",
@@ -9630,6 +9630,31 @@ var Daemon = class _Daemon {
9630
9630
  worktreePath,
9631
9631
  envVars
9632
9632
  );
9633
+ const modeConfig = getDaemonModeConfig();
9634
+ if (modeConfig.mode === "cloud") {
9635
+ console.log(`[Daemon] EP1122: Cloud mode - auto-starting dev server for ${moduleUid}`);
9636
+ try {
9637
+ const previewManager = getPreviewManager();
9638
+ const customCommand = setupConfig?.worktree_dev_server_script;
9639
+ const port = modeConfig.fixedPort || 3e3;
9640
+ const startResult = await previewManager.startPreview({
9641
+ moduleUid,
9642
+ worktreePath,
9643
+ port,
9644
+ customCommand,
9645
+ skipTunnel: true
9646
+ // Cloud mode - supervisord manages cloudflared
9647
+ });
9648
+ if (startResult.success) {
9649
+ console.log(`[Daemon] EP1122: Dev server started on port ${port} for ${moduleUid}`);
9650
+ } else {
9651
+ console.warn(`[Daemon] EP1122: Dev server start failed (non-fatal): ${startResult.error}`);
9652
+ }
9653
+ } catch (previewError) {
9654
+ const errMsg = previewError instanceof Error ? previewError.message : String(previewError);
9655
+ console.warn(`[Daemon] EP1122: Dev server auto-start error (non-fatal): ${errMsg}`);
9656
+ }
9657
+ }
9633
9658
  return {
9634
9659
  success: true,
9635
9660
  output: `Worktree setup completed for ${moduleUid}`,