@ekkos/cli 1.2.2 → 1.2.3
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/commands/run.js +12 -35
- package/package.json +1 -1
package/dist/commands/run.js
CHANGED
|
@@ -877,10 +877,10 @@ function launchWithDashboard(options) {
|
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
/**
|
|
880
|
-
* Launch
|
|
881
|
-
*
|
|
880
|
+
* Launch dashboard in a new Windows Terminal pane to the right (40%).
|
|
881
|
+
* Claude Code continues in the current (left) pane (60%).
|
|
882
882
|
*/
|
|
883
|
-
function launchWithWindowsTerminal(
|
|
883
|
+
function launchWithWindowsTerminal() {
|
|
884
884
|
const ekkosCmd = process.argv[1];
|
|
885
885
|
const cwd = process.cwd();
|
|
886
886
|
const launchTime = Date.now();
|
|
@@ -890,42 +890,19 @@ function launchWithWindowsTerminal(options) {
|
|
|
890
890
|
fs.writeFileSync(markerPath, `${launchTime}\n${cwd}`);
|
|
891
891
|
}
|
|
892
892
|
catch { }
|
|
893
|
-
|
|
894
|
-
const runArgs = ['run'];
|
|
895
|
-
if (options.session)
|
|
896
|
-
runArgs.push('-s', options.session);
|
|
897
|
-
if (options.bypass)
|
|
898
|
-
runArgs.push('-b');
|
|
899
|
-
if (options.verbose)
|
|
900
|
-
runArgs.push('-v');
|
|
901
|
-
if (options.doctor)
|
|
902
|
-
runArgs.push('-d');
|
|
903
|
-
if (options.research)
|
|
904
|
-
runArgs.push('-r');
|
|
905
|
-
if (options.noInject)
|
|
906
|
-
runArgs.push('--skip-inject');
|
|
907
|
-
if (options.noDna)
|
|
908
|
-
runArgs.push('--skip-dna');
|
|
909
|
-
if (options.noProxy)
|
|
910
|
-
runArgs.push('--skip-proxy');
|
|
911
|
-
const runCommand = `node "${ekkosCmd}" ${runArgs.join(' ')}`;
|
|
893
|
+
const dashCommand = `node "${ekkosCmd}" dashboard --wait-for-new --refresh 2000`;
|
|
912
894
|
try {
|
|
913
|
-
//
|
|
914
|
-
// -V = vertical split, -s 0.
|
|
915
|
-
(0, child_process_1.execSync)(`wt.exe -w 0 split-pane -V -s 0.
|
|
916
|
-
console.log(chalk_1.default.cyan('\n
|
|
895
|
+
// Spawn dashboard in a RIGHT pane (40%), Claude stays in current LEFT pane (60%)
|
|
896
|
+
// -V = vertical split, -s 0.4 = new pane gets 40% width
|
|
897
|
+
(0, child_process_1.execSync)(`wt.exe -w 0 split-pane -V -s 0.4 -d "${cwd}" cmd /c "${dashCommand}"`, { stdio: 'pipe' });
|
|
898
|
+
console.log(chalk_1.default.cyan('\n Dashboard launched in right pane (40%)'));
|
|
917
899
|
console.log(chalk_1.default.gray(' Switch panes: Alt+Arrow keys\n'));
|
|
918
900
|
}
|
|
919
901
|
catch (err) {
|
|
920
902
|
console.log(chalk_1.default.yellow(` Windows Terminal split failed: ${err.message}`));
|
|
921
903
|
console.log(chalk_1.default.gray(' Run "ekkos dashboard --latest" in a separate terminal'));
|
|
922
|
-
return;
|
|
923
904
|
}
|
|
924
|
-
//
|
|
925
|
-
// Use dynamic import to avoid circular dependency
|
|
926
|
-
Promise.resolve().then(() => __importStar(require('./dashboard'))).then(({ dashboardCommand }) => {
|
|
927
|
-
dashboardCommand.parseAsync(['--wait-for-new', '--refresh', '2000'], { from: 'user' });
|
|
928
|
-
});
|
|
905
|
+
// Don't return — run() continues to launch Claude in this (left) terminal
|
|
929
906
|
}
|
|
930
907
|
async function run(options) {
|
|
931
908
|
// ══════════════════════════════════════════════════════════════════════════
|
|
@@ -961,11 +938,11 @@ async function run(options) {
|
|
|
961
938
|
// ══════════════════════════════════════════════════════════════════════════
|
|
962
939
|
if (options.dashboard) {
|
|
963
940
|
if (isWindows) {
|
|
964
|
-
// Windows:
|
|
941
|
+
// Windows: dashboard opens in right pane, Claude continues in this (left) terminal
|
|
965
942
|
try {
|
|
966
943
|
(0, child_process_1.execSync)('where wt.exe', { encoding: 'utf-8', stdio: 'pipe' });
|
|
967
|
-
launchWithWindowsTerminal(
|
|
968
|
-
return
|
|
944
|
+
launchWithWindowsTerminal();
|
|
945
|
+
// Don't return — fall through to launch Claude in this terminal
|
|
969
946
|
}
|
|
970
947
|
catch {
|
|
971
948
|
console.log(chalk_1.default.yellow(' Windows Terminal (wt.exe) not found.'));
|