@cleocode/core 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/index.js +12 -1
- package/dist/index.js.map +2 -2
- package/dist/scaffold.d.ts +1 -1
- package/dist/scaffold.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/scaffold.ts +13 -0
package/dist/index.js
CHANGED
|
@@ -19748,6 +19748,15 @@ async function ensureGlobalHome() {
|
|
|
19748
19748
|
for (const subdir of REQUIRED_GLOBAL_SUBDIRS) {
|
|
19749
19749
|
await mkdir5(join37(cleoHome, subdir), { recursive: true });
|
|
19750
19750
|
}
|
|
19751
|
+
const globalConfigPath = join37(cleoHome, "config.json");
|
|
19752
|
+
if (!existsSync33(globalConfigPath)) {
|
|
19753
|
+
const templatePath = join37(getPackageRoot(), "templates", "global-config.template.json");
|
|
19754
|
+
if (existsSync33(templatePath)) {
|
|
19755
|
+
const template = readFileSync22(templatePath, "utf-8");
|
|
19756
|
+
const resolved = template.replace("{{SCHEMA_VERSION_GLOBAL_CONFIG}}", "1.0.0");
|
|
19757
|
+
await writeFile5(globalConfigPath, resolved);
|
|
19758
|
+
}
|
|
19759
|
+
}
|
|
19751
19760
|
const homedir7 = (await import("node:os")).homedir();
|
|
19752
19761
|
const legacyCleoHome = join37(homedir7, ".cleo");
|
|
19753
19762
|
const cleanupPaths = [cleoHome];
|
|
@@ -19953,7 +19962,9 @@ backups/
|
|
|
19953
19962
|
"brain-worker.pid",
|
|
19954
19963
|
"VERSION",
|
|
19955
19964
|
"schemas",
|
|
19956
|
-
"bin"
|
|
19965
|
+
"bin",
|
|
19966
|
+
".install-state",
|
|
19967
|
+
"templates/templates"
|
|
19957
19968
|
];
|
|
19958
19969
|
}
|
|
19959
19970
|
});
|