@cleocode/cleo 2026.3.52 → 2026.3.53

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
@@ -35539,6 +35539,15 @@ async function ensureGlobalHome() {
35539
35539
  for (const subdir of REQUIRED_GLOBAL_SUBDIRS) {
35540
35540
  await mkdir5(join37(cleoHome, subdir), { recursive: true });
35541
35541
  }
35542
+ const globalConfigPath = join37(cleoHome, "config.json");
35543
+ if (!existsSync34(globalConfigPath)) {
35544
+ const templatePath = join37(getPackageRoot(), "templates", "global-config.template.json");
35545
+ if (existsSync34(templatePath)) {
35546
+ const template = readFileSync22(templatePath, "utf-8");
35547
+ const resolved = template.replace("{{SCHEMA_VERSION_GLOBAL_CONFIG}}", "1.0.0");
35548
+ await writeFile5(globalConfigPath, resolved);
35549
+ }
35550
+ }
35542
35551
  const homedir7 = (await import("node:os")).homedir();
35543
35552
  const legacyCleoHome = join37(homedir7, ".cleo");
35544
35553
  const cleanupPaths = [cleoHome];
@@ -35744,7 +35753,9 @@ backups/
35744
35753
  "brain-worker.pid",
35745
35754
  "VERSION",
35746
35755
  "schemas",
35747
- "bin"
35756
+ "bin",
35757
+ ".install-state",
35758
+ "templates/templates"
35748
35759
  ];
35749
35760
  }
35750
35761
  });