dual-brain 7.1.20 → 7.1.21

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.
Files changed (2) hide show
  1. package/bin/dual-brain.mjs +13 -9
  2. package/package.json +1 -1
@@ -672,7 +672,7 @@ function cmdBreakGlass(reason) {
672
672
  * Render the data-tools-style rounded header box for the main screen.
673
673
  * Inner width is 39 chars. Lines are padded with spaces to fill the box.
674
674
  */
675
- function renderHeader(version, providerLines) {
675
+ function renderHeader(version, providerLines, dtVersion) {
676
676
  const W = 39; // inner width
677
677
  const pad = (s) => {
678
678
  // Strip ANSI codes for length calculation
@@ -683,11 +683,13 @@ function renderHeader(version, providerLines) {
683
683
  const sep = ` ├${'─'.repeat(W)}┤`;
684
684
  const bottom = ` └${'─'.repeat(W)}┘`;
685
685
 
686
- const title = `DATA Tools - Dual Brain v${version}`;
686
+ const title = dtVersion ? `DATA Tools v${dtVersion}` : `DATA Tools`;
687
+ const subTitle = `🧠 Dual Brain v${version}`;
687
688
  const credit = `by Steve Moraco + dual-brain`;
688
689
 
689
690
  const lines = [top];
690
691
  lines.push(` │ ${pad(title)}│`);
692
+ lines.push(` │ ${pad(subTitle)}│`);
691
693
  lines.push(` │ ${pad(credit)}│`);
692
694
  lines.push(sep);
693
695
  for (const pl of providerLines) {
@@ -1033,7 +1035,15 @@ async function mainScreen(rl, ask) {
1033
1035
  subLine('OpenAI', openaiPlan, auth.openai.found, openaiExpired, openaiDays, openaiSub),
1034
1036
  ];
1035
1037
 
1036
- console.log(`📦 DATA Tools - Dual Brain v${version}`);
1038
+ const rtMain = detectReplitTools(cwd);
1039
+ const dtVersion = (rtMain.installed && rtMain.version) ? rtMain.version : null;
1040
+ if (dtVersion) {
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
+ }
1037
1047
  const latestVersion = await checkForUpdates(version);
1038
1048
  if (latestVersion) {
1039
1049
  console.log(` ⬆️ Update available: v${version} → v${latestVersion}`);
@@ -1046,12 +1056,6 @@ async function mainScreen(rl, ask) {
1046
1056
  console.log(` ${line}`);
1047
1057
  }
1048
1058
 
1049
- // replit-tools indicator
1050
- const rtMain = detectReplitTools(cwd);
1051
- if (rtMain.installed && rtMain.version) {
1052
- console.log(` 🔗 replit-tools v${rtMain.version}`);
1053
- }
1054
-
1055
1059
  const sparkline = buildSparkline(cwd);
1056
1060
  if (sparkline) {
1057
1061
  console.log(` Activity: ${sparkline}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dual-brain",
3
- "version": "7.1.20",
3
+ "version": "7.1.21",
4
4
  "description": "AI orchestration across Claude + OpenAI subscriptions — smart routing, budget awareness, and dual-brain collaboration",
5
5
  "type": "module",
6
6
  "bin": {