@cleocode/cleo 2026.3.55 → 2026.3.57

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.
@@ -65,9 +65,9 @@ async function runPostinstall() {
65
65
  ({ bootstrapGlobalCleo } = await import('@cleocode/core'));
66
66
  }
67
67
 
68
- const result = await bootstrapGlobalCleo({
69
- packageRoot: getPackageRoot(),
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((resolve14) => {
675
+ return new Promise((resolve13) => {
676
676
  if (rootLogger) {
677
677
  rootLogger.flush(() => {
678
678
  rootLogger = null;
679
679
  currentLogDir = null;
680
- resolve14();
680
+ resolve13();
681
681
  });
682
682
  } else {
683
- resolve14();
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((resolve14) => setTimeout(resolve14, ms));
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 dirname25, join as join118 } from "node:path";
77989
- import { fileURLToPath as fileURLToPath7 } from "node:url";
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((resolve14) => {
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
- resolve14(clean === "" || clean === "y" || clean === "yes");
94842
+ resolve13(clean === "" || clean === "y" || clean === "yes");
94848
94843
  });
94849
94844
  });
94850
94845
  }
@@ -94884,10 +94879,6 @@ async function runPostUpdateDiagnostics(opts) {
94884
94879
  message: result.success ? "Post-update upgrade complete." : "Post-update upgrade had errors."
94885
94880
  }
94886
94881
  );
94887
- process.stderr.write(`
94888
- \u{1F4A1} Run 'cleo install-global' to refresh global provider configs.
94889
-
94890
- `);
94891
94882
  if (!result.success) {
94892
94883
  process.stderr.write(
94893
94884
  `
@@ -94908,12 +94899,6 @@ async function runPostUpdateDiagnostics(opts) {
94908
94899
  },
94909
94900
  { command: "self-update", message: "No post-update actions needed." }
94910
94901
  );
94911
- process.stderr.write(
94912
- `
94913
- \u{1F4A1} Run 'cleo install-global' to refresh global provider configs after updates.
94914
-
94915
- `
94916
- );
94917
94902
  }
94918
94903
  }
94919
94904
 
@@ -95940,7 +95925,7 @@ function registerWebCommand(program) {
95940
95925
  }
95941
95926
  } catch {
95942
95927
  }
95943
- await new Promise((resolve14) => setTimeout(resolve14, 500));
95928
+ await new Promise((resolve13) => setTimeout(resolve13, 500));
95944
95929
  }
95945
95930
  if (!started) {
95946
95931
  try {
@@ -95982,7 +95967,7 @@ function registerWebCommand(program) {
95982
95967
  }
95983
95968
  for (let i = 0; i < 10; i++) {
95984
95969
  if (!isProcessRunning(status.pid)) break;
95985
- await new Promise((resolve14) => setTimeout(resolve14, 500));
95970
+ await new Promise((resolve13) => setTimeout(resolve13, 500));
95986
95971
  }
95987
95972
  if (isProcessRunning(status.pid)) {
95988
95973
  try {
@@ -96044,7 +96029,7 @@ function registerWebCommand(program) {
96044
96029
 
96045
96030
  // packages/cleo/src/cli/index.ts
96046
96031
  function getPackageVersion() {
96047
- const pkgPath = join118(dirname25(fileURLToPath7(import.meta.url)), "../../package.json");
96032
+ const pkgPath = join118(dirname24(fileURLToPath6(import.meta.url)), "../../package.json");
96048
96033
  const pkg = JSON.parse(readFileSync97(pkgPath, "utf-8"));
96049
96034
  return pkg.version;
96050
96035
  }