@cleocode/cleo 2026.4.47 → 2026.4.48

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/dist/cli/index.js CHANGED
@@ -87266,6 +87266,7 @@ var init_cleo = __esm({
87266
87266
  // packages/core/src/index.ts
87267
87267
  var init_src3 = __esm({
87268
87268
  "packages/core/src/index.ts"() {
87269
+ "use strict";
87269
87270
  init_src();
87270
87271
  init_adapters();
87271
87272
  init_admin();
@@ -142620,7 +142621,7 @@ function registerWebCommand(program) {
142620
142621
  );
142621
142622
  }
142622
142623
  const projectRoot = process.env["CLEO_ROOT"] ?? process.cwd();
142623
- const distServerDir = join131(projectRoot, "dist", "cli");
142624
+ const studioDir = process.env["CLEO_STUDIO_DIR"] ?? join131(projectRoot, "packages", "studio", "build");
142624
142625
  await mkdir19(join131(getCleoHome(), "logs"), { recursive: true });
142625
142626
  await writeFile14(
142626
142627
  configFile,
@@ -142630,22 +142631,31 @@ function registerWebCommand(program) {
142630
142631
  startedAt: (/* @__PURE__ */ new Date()).toISOString()
142631
142632
  })
142632
142633
  );
142633
- const webIndexPath = join131(distServerDir, "index.js");
142634
+ const webIndexPath = join131(studioDir, "index.js");
142634
142635
  try {
142635
142636
  await stat3(webIndexPath);
142636
142637
  } catch {
142637
142638
  try {
142638
- execFileSync18("npm", ["run", "build"], { cwd: projectRoot, stdio: "ignore" });
142639
+ execFileSync18("pnpm", ["--filter", "@cleocode/studio", "run", "build"], {
142640
+ cwd: projectRoot,
142641
+ stdio: "ignore"
142642
+ });
142639
142643
  } catch {
142640
- throw new CleoError(1 /* GENERAL_ERROR */, `Build failed. Check logs: ${logFile}`);
142644
+ throw new CleoError(
142645
+ 1 /* GENERAL_ERROR */,
142646
+ `Studio build failed. Run: pnpm --filter @cleocode/studio run build
142647
+ Logs: ${logFile}`
142648
+ );
142641
142649
  }
142642
142650
  }
142643
142651
  const serverProcess = spawn2("node", [webIndexPath], {
142644
- cwd: projectRoot,
142652
+ cwd: studioDir,
142645
142653
  env: {
142646
142654
  ...process.env,
142647
- CLEO_WEB_PORT: String(port),
142648
- CLEO_WEB_HOST: host
142655
+ HOST: host,
142656
+ PORT: String(port),
142657
+ // Pass CLEO paths through to the studio server
142658
+ CLEO_ROOT: projectRoot
142649
142659
  },
142650
142660
  detached: true,
142651
142661
  stdio: "ignore"