dual-brain 0.1.0 → 0.1.1
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/dual-brain.mjs +11 -11
- package/package.json +1 -1
package/bin/dual-brain.mjs
CHANGED
|
@@ -683,16 +683,19 @@ function renderHeader(version, providerLines, dtVersion) {
|
|
|
683
683
|
const sep = ` ├${'─'.repeat(W)}┤`;
|
|
684
684
|
const bottom = ` └${'─'.repeat(W)}┘`;
|
|
685
685
|
|
|
686
|
-
const title =
|
|
687
|
-
const subTitle = `🧠 Dual Brain v${version}`;
|
|
686
|
+
const title = `🧠 Dual Brain v${version}`;
|
|
688
687
|
const credit = `by Steve Moraco + dual-brain`;
|
|
689
688
|
|
|
689
|
+
const allProviderLines = [...providerLines];
|
|
690
|
+
if (dtVersion) {
|
|
691
|
+
allProviderLines.push(`📦 data-tools v${dtVersion} detected`);
|
|
692
|
+
}
|
|
693
|
+
|
|
690
694
|
const lines = [top];
|
|
691
695
|
lines.push(` │ ${pad(title)}│`);
|
|
692
|
-
lines.push(` │ ${pad(subTitle)}│`);
|
|
693
696
|
lines.push(` │ ${pad(credit)}│`);
|
|
694
697
|
lines.push(sep);
|
|
695
|
-
for (const pl of
|
|
698
|
+
for (const pl of allProviderLines) {
|
|
696
699
|
lines.push(` │ ${pad(pl)}│`);
|
|
697
700
|
}
|
|
698
701
|
lines.push(bottom);
|
|
@@ -1037,13 +1040,7 @@ async function mainScreen(rl, ask) {
|
|
|
1037
1040
|
|
|
1038
1041
|
const rtMain = detectReplitTools(cwd);
|
|
1039
1042
|
const dtVersion = (rtMain.installed && rtMain.version) ? rtMain.version : null;
|
|
1040
|
-
|
|
1041
|
-
console.log(`📦 DATA Tools v${dtVersion}`);
|
|
1042
|
-
console.log(`🧠 Dual Brain v${version}`);
|
|
1043
|
-
} else {
|
|
1044
|
-
console.log(`📦 DATA Tools`);
|
|
1045
|
-
console.log(`🧠 Dual Brain v${version}`);
|
|
1046
|
-
}
|
|
1043
|
+
console.log(`🧠 Dual Brain v${version}`);
|
|
1047
1044
|
const latestVersion = await checkForUpdates(version);
|
|
1048
1045
|
if (latestVersion) {
|
|
1049
1046
|
console.log(` ⬆️ Update available: v${version} → v${latestVersion}`);
|
|
@@ -1055,6 +1052,9 @@ async function mainScreen(rl, ask) {
|
|
|
1055
1052
|
for (const line of headerLines) {
|
|
1056
1053
|
console.log(` ${line}`);
|
|
1057
1054
|
}
|
|
1055
|
+
if (dtVersion) {
|
|
1056
|
+
console.log(` 📦 data-tools v${dtVersion} detected`);
|
|
1057
|
+
}
|
|
1058
1058
|
|
|
1059
1059
|
const sparkline = buildSparkline(cwd);
|
|
1060
1060
|
if (sparkline) {
|