@cleocode/cleo 2026.5.50 → 2026.5.51
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 +20 -16
- package/dist/cli/index.js.map +1 -1
- package/package.json +10 -10
package/dist/cli/index.js
CHANGED
|
@@ -56563,25 +56563,29 @@ async function runStartupMaintenance() {
|
|
|
56563
56563
|
} catch {
|
|
56564
56564
|
}
|
|
56565
56565
|
const _startupLog = getLogger17("cli-startup");
|
|
56566
|
-
|
|
56567
|
-
|
|
56568
|
-
|
|
56569
|
-
const
|
|
56570
|
-
if (
|
|
56571
|
-
|
|
56572
|
-
|
|
56573
|
-
|
|
56566
|
+
const isInitInvocation = process.argv.slice(2).some((a) => a === "init");
|
|
56567
|
+
if (!isInitInvocation) {
|
|
56568
|
+
try {
|
|
56569
|
+
const _projectRootForMigration = getProjectRoot33();
|
|
56570
|
+
if (needsSignaldockToConduitMigration(_projectRootForMigration)) {
|
|
56571
|
+
const migrationResult = migrateSignaldockToConduit(_projectRootForMigration);
|
|
56572
|
+
if (migrationResult.status === "failed") {
|
|
56573
|
+
_startupLog.error(
|
|
56574
|
+
{ errors: migrationResult.errors, projectRoot: _projectRootForMigration },
|
|
56575
|
+
"T310 migration: signaldock \u2192 conduit failed \u2014 CLI continues, run `cleo doctor` to diagnose"
|
|
56576
|
+
);
|
|
56577
|
+
}
|
|
56578
|
+
}
|
|
56579
|
+
} catch (err) {
|
|
56580
|
+
const msg = err instanceof Error ? err.message : String(err);
|
|
56581
|
+
if (msg.includes("E_NO_PROJECT") || msg.startsWith("Run cleo init")) {
|
|
56582
|
+
} else {
|
|
56583
|
+
_startupLog.warn(
|
|
56584
|
+
{ error: msg },
|
|
56585
|
+
"T310 migration startup check threw unexpectedly \u2014 CLI continues"
|
|
56574
56586
|
);
|
|
56575
56587
|
}
|
|
56576
56588
|
}
|
|
56577
|
-
} catch (err) {
|
|
56578
|
-
if (err instanceof Error && err.message.includes("E_NO_PROJECT")) {
|
|
56579
|
-
} else {
|
|
56580
|
-
_startupLog.warn(
|
|
56581
|
-
{ error: err instanceof Error ? err.message : String(err) },
|
|
56582
|
-
"T310 migration startup check threw unexpectedly \u2014 CLI continues"
|
|
56583
|
-
);
|
|
56584
|
-
}
|
|
56585
56589
|
}
|
|
56586
56590
|
try {
|
|
56587
56591
|
ensureConduitDb(getProjectRoot33());
|