dual-brain 0.3.13 → 0.3.14

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/install.mjs +13 -1
  2. package/package.json +1 -1
package/install.mjs CHANGED
@@ -1042,10 +1042,17 @@ function installDefaultShellLauncher(workspace, actions) {
1042
1042
 
1043
1043
  const start = '# >>> dual-brain default launcher >>>';
1044
1044
  const end = '# <<< dual-brain default launcher <<<';
1045
+ const suppressStart = '# >>> dual-brain suppress data-tools prompt >>>';
1046
+ const suppressEnd = '# <<< dual-brain suppress data-tools prompt <<<';
1047
+ const suppressBlock = [
1048
+ suppressStart,
1049
+ '# Added by dual-brain install when dual-brain is the default shell menu.',
1050
+ 'export CLAUDE_NO_PROMPT=true',
1051
+ suppressEnd,
1052
+ ].join('\n');
1045
1053
  const block = [
1046
1054
  start,
1047
1055
  '# Added by dual-brain install. Set DUAL_BRAIN_SKIP=1 to bypass.',
1048
- 'export CLAUDE_NO_PROMPT=true',
1049
1056
  'if [ -t 1 ] && [ -z "${DUAL_BRAIN_LOADED}" ] && [ -z "${DUAL_BRAIN_SKIP}" ]; then',
1050
1057
  ' export DUAL_BRAIN_LOADED=1',
1051
1058
  ' command -v dual-brain >/dev/null 2>&1 && dual-brain',
@@ -1057,7 +1064,12 @@ function installDefaultShellLauncher(workspace, actions) {
1057
1064
  let src = readFileSync(bashrcPath, 'utf8');
1058
1065
  const esc = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
1059
1066
  const existing = new RegExp(`${esc(start)}[\\s\\S]*?${esc(end)}\\n?`, 'm');
1067
+ const existingSuppress = new RegExp(`${esc(suppressStart)}[\\s\\S]*?${esc(suppressEnd)}\\n?`, 'm');
1060
1068
  src = src.replace(existing, '');
1069
+ src = src.replace(existingSuppress, '');
1070
+ const sessionMarker = '# Session Manager (interactive menu)';
1071
+ if (src.includes(sessionMarker)) src = src.replace(sessionMarker, `${suppressBlock}\n\n${sessionMarker}`);
1072
+ else src = `${suppressBlock}\n\n${src.replace(/^\s*/, '')}`;
1061
1073
  const marker = '# Auto-show menu on shell start';
1062
1074
  if (src.includes(marker)) src = src.replace(marker, `${block}\n\n${marker}`);
1063
1075
  else src = `${src.replace(/\s*$/, '\n\n')}${block}\n`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dual-brain",
3
- "version": "0.3.13",
3
+ "version": "0.3.14",
4
4
  "description": "AI orchestration across Claude + OpenAI subscriptions — smart routing, budget awareness, and dual-brain collaboration",
5
5
  "type": "module",
6
6
  "bin": {