@cleocode/cleo 2026.3.55 → 2026.3.56
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/bin/postinstall.js +3 -3
- package/dist/cli/index.js +12 -17
- package/dist/cli/index.js.map +3 -3
- package/package.json +3 -3
package/bin/postinstall.js
CHANGED
|
@@ -65,9 +65,9 @@ async function runPostinstall() {
|
|
|
65
65
|
({ bootstrapGlobalCleo } = await import('@cleocode/core'));
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
});
|
|
68
|
+
// No packageRoot override — let bootstrap resolve templates from
|
|
69
|
+
// @cleocode/core's getPackageRoot() (templates live in core, not cleo)
|
|
70
|
+
const result = await bootstrapGlobalCleo({});
|
|
71
71
|
|
|
72
72
|
for (const item of result.created) {
|
|
73
73
|
console.log(`CLEO: ${item}`);
|
package/dist/cli/index.js
CHANGED
|
@@ -672,15 +672,15 @@ function getLogDir() {
|
|
|
672
672
|
return currentLogDir;
|
|
673
673
|
}
|
|
674
674
|
function closeLogger() {
|
|
675
|
-
return new Promise((
|
|
675
|
+
return new Promise((resolve13) => {
|
|
676
676
|
if (rootLogger) {
|
|
677
677
|
rootLogger.flush(() => {
|
|
678
678
|
rootLogger = null;
|
|
679
679
|
currentLogDir = null;
|
|
680
|
-
|
|
680
|
+
resolve13();
|
|
681
681
|
});
|
|
682
682
|
} else {
|
|
683
|
-
|
|
683
|
+
resolve13();
|
|
684
684
|
}
|
|
685
685
|
});
|
|
686
686
|
}
|
|
@@ -16018,7 +16018,7 @@ async function recoverCrashedAgents(thresholdMs = 3e4, cwd) {
|
|
|
16018
16018
|
return results;
|
|
16019
16019
|
}
|
|
16020
16020
|
function sleep(ms) {
|
|
16021
|
-
return new Promise((
|
|
16021
|
+
return new Promise((resolve13) => setTimeout(resolve13, ms));
|
|
16022
16022
|
}
|
|
16023
16023
|
var DEFAULT_RETRY_POLICY;
|
|
16024
16024
|
var init_retry = __esm({
|
|
@@ -77985,8 +77985,8 @@ var init_hooks_engine = __esm({
|
|
|
77985
77985
|
|
|
77986
77986
|
// packages/cleo/src/cli/index.ts
|
|
77987
77987
|
import { readFileSync as readFileSync97 } from "node:fs";
|
|
77988
|
-
import { dirname as
|
|
77989
|
-
import { fileURLToPath as
|
|
77988
|
+
import { dirname as dirname24, join as join118 } from "node:path";
|
|
77989
|
+
import { fileURLToPath as fileURLToPath6 } from "node:url";
|
|
77990
77990
|
|
|
77991
77991
|
// node_modules/.pnpm/citty@0.2.1/node_modules/citty/dist/_chunks/libs/scule.mjs
|
|
77992
77992
|
var NUMBER_CHAR_RE = /\d/;
|
|
@@ -92872,18 +92872,13 @@ function registerInjectCommand(program) {
|
|
|
92872
92872
|
|
|
92873
92873
|
// packages/cleo/src/cli/commands/install-global.ts
|
|
92874
92874
|
init_renderers();
|
|
92875
|
-
import { dirname as dirname24, resolve as resolve13 } from "node:path";
|
|
92876
|
-
import { fileURLToPath as fileURLToPath6 } from "node:url";
|
|
92877
92875
|
function registerInstallGlobalCommand(program) {
|
|
92878
92876
|
program.command("install-global").description("Refresh global CLEO setup: provider files, MCP configs, templates").option("--dry-run", "Preview changes without applying").action(async (opts) => {
|
|
92879
92877
|
const isDryRun = !!opts["dryRun"];
|
|
92880
92878
|
try {
|
|
92881
92879
|
const { bootstrapGlobalCleo: bootstrapGlobalCleo2 } = await Promise.resolve().then(() => (init_internal(), internal_exports));
|
|
92882
|
-
const thisFile = fileURLToPath6(import.meta.url);
|
|
92883
|
-
const packageRoot = resolve13(dirname24(thisFile), "..", "..", "..");
|
|
92884
92880
|
const result = await bootstrapGlobalCleo2({
|
|
92885
|
-
dryRun: isDryRun
|
|
92886
|
-
packageRoot
|
|
92881
|
+
dryRun: isDryRun
|
|
92887
92882
|
});
|
|
92888
92883
|
cliOutput(
|
|
92889
92884
|
{
|
|
@@ -94840,11 +94835,11 @@ async function runPostUpdateDiagnostics(opts) {
|
|
|
94840
94835
|
input: process.stdin,
|
|
94841
94836
|
output: process.stdout
|
|
94842
94837
|
});
|
|
94843
|
-
shouldMigrate = await new Promise((
|
|
94838
|
+
shouldMigrate = await new Promise((resolve13) => {
|
|
94844
94839
|
rl.question(" Do you want to run the upgrade now? [Y/n] ", (answer) => {
|
|
94845
94840
|
rl.close();
|
|
94846
94841
|
const clean = answer.trim().toLowerCase();
|
|
94847
|
-
|
|
94842
|
+
resolve13(clean === "" || clean === "y" || clean === "yes");
|
|
94848
94843
|
});
|
|
94849
94844
|
});
|
|
94850
94845
|
}
|
|
@@ -95940,7 +95935,7 @@ function registerWebCommand(program) {
|
|
|
95940
95935
|
}
|
|
95941
95936
|
} catch {
|
|
95942
95937
|
}
|
|
95943
|
-
await new Promise((
|
|
95938
|
+
await new Promise((resolve13) => setTimeout(resolve13, 500));
|
|
95944
95939
|
}
|
|
95945
95940
|
if (!started) {
|
|
95946
95941
|
try {
|
|
@@ -95982,7 +95977,7 @@ function registerWebCommand(program) {
|
|
|
95982
95977
|
}
|
|
95983
95978
|
for (let i = 0; i < 10; i++) {
|
|
95984
95979
|
if (!isProcessRunning(status.pid)) break;
|
|
95985
|
-
await new Promise((
|
|
95980
|
+
await new Promise((resolve13) => setTimeout(resolve13, 500));
|
|
95986
95981
|
}
|
|
95987
95982
|
if (isProcessRunning(status.pid)) {
|
|
95988
95983
|
try {
|
|
@@ -96044,7 +96039,7 @@ function registerWebCommand(program) {
|
|
|
96044
96039
|
|
|
96045
96040
|
// packages/cleo/src/cli/index.ts
|
|
96046
96041
|
function getPackageVersion() {
|
|
96047
|
-
const pkgPath = join118(
|
|
96042
|
+
const pkgPath = join118(dirname24(fileURLToPath6(import.meta.url)), "../../package.json");
|
|
96048
96043
|
const pkg = JSON.parse(readFileSync97(pkgPath, "utf-8"));
|
|
96049
96044
|
return pkg.version;
|
|
96050
96045
|
}
|