@ekkos/cli 1.2.1 → 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/init.js +9 -19
- package/dist/commands/run.js +10 -10
- package/package.json +1 -1
package/dist/commands/init.js
CHANGED
|
@@ -251,28 +251,18 @@ async function deployForClaude(apiKey, userId, options) {
|
|
|
251
251
|
catch (error) {
|
|
252
252
|
spinner.fail('MCP server configuration failed');
|
|
253
253
|
}
|
|
254
|
-
// Settings.json (hook registration)
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
254
|
+
// Settings.json (hook registration)
|
|
255
|
+
spinner = (0, ora_1.default)('Deploying hooks configuration...').start();
|
|
256
|
+
try {
|
|
257
|
+
(0, settings_1.deployClaudeSettings)();
|
|
258
258
|
result.settings = true;
|
|
259
|
+
spinner.succeed('Hooks configuration');
|
|
259
260
|
}
|
|
260
|
-
|
|
261
|
-
spinner
|
|
262
|
-
try {
|
|
263
|
-
(0, settings_1.deployClaudeSettings)();
|
|
264
|
-
result.settings = true;
|
|
265
|
-
spinner.succeed('Hooks configuration');
|
|
266
|
-
}
|
|
267
|
-
catch (error) {
|
|
268
|
-
spinner.fail('Hooks configuration failed');
|
|
269
|
-
}
|
|
270
|
-
}
|
|
271
|
-
// Hook scripts — skipped on Windows
|
|
272
|
-
if (platform_1.isWindows) {
|
|
273
|
-
// Skip hook scripts on Windows
|
|
261
|
+
catch (error) {
|
|
262
|
+
spinner.fail('Hooks configuration failed');
|
|
274
263
|
}
|
|
275
|
-
|
|
264
|
+
// Hook scripts
|
|
265
|
+
if (!options.skipHooks) {
|
|
276
266
|
spinner = (0, ora_1.default)('Deploying hook scripts...').start();
|
|
277
267
|
try {
|
|
278
268
|
result.hooks = (0, hooks_1.deployHooks)(apiKey);
|
package/dist/commands/run.js
CHANGED
|
@@ -877,11 +877,10 @@ function launchWithDashboard(options) {
|
|
|
877
877
|
}
|
|
878
878
|
}
|
|
879
879
|
/**
|
|
880
|
-
* Launch dashboard in a
|
|
881
|
-
*
|
|
882
|
-
* Claude runs in the original terminal, dashboard runs in the new pane.
|
|
880
|
+
* Launch dashboard in a new Windows Terminal pane to the right (40%).
|
|
881
|
+
* Claude Code continues in the current (left) pane (60%).
|
|
883
882
|
*/
|
|
884
|
-
function launchWithWindowsTerminal(
|
|
883
|
+
function launchWithWindowsTerminal() {
|
|
885
884
|
const ekkosCmd = process.argv[1];
|
|
886
885
|
const cwd = process.cwd();
|
|
887
886
|
const launchTime = Date.now();
|
|
@@ -893,16 +892,17 @@ function launchWithWindowsTerminal(options) {
|
|
|
893
892
|
catch { }
|
|
894
893
|
const dashCommand = `node "${ekkosCmd}" dashboard --wait-for-new --refresh 2000`;
|
|
895
894
|
try {
|
|
896
|
-
//
|
|
897
|
-
// -V = vertical split, -s 0.4 = 40% width
|
|
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
|
|
898
897
|
(0, child_process_1.execSync)(`wt.exe -w 0 split-pane -V -s 0.4 -d "${cwd}" cmd /c "${dashCommand}"`, { stdio: 'pipe' });
|
|
899
898
|
console.log(chalk_1.default.cyan('\n Dashboard launched in right pane (40%)'));
|
|
900
|
-
console.log(chalk_1.default.gray(' Switch panes: Alt+Arrow keys'));
|
|
899
|
+
console.log(chalk_1.default.gray(' Switch panes: Alt+Arrow keys\n'));
|
|
901
900
|
}
|
|
902
901
|
catch (err) {
|
|
903
902
|
console.log(chalk_1.default.yellow(` Windows Terminal split failed: ${err.message}`));
|
|
904
903
|
console.log(chalk_1.default.gray(' Run "ekkos dashboard --latest" in a separate terminal'));
|
|
905
904
|
}
|
|
905
|
+
// Don't return — run() continues to launch Claude in this (left) terminal
|
|
906
906
|
}
|
|
907
907
|
async function run(options) {
|
|
908
908
|
// ══════════════════════════════════════════════════════════════════════════
|
|
@@ -938,11 +938,11 @@ async function run(options) {
|
|
|
938
938
|
// ══════════════════════════════════════════════════════════════════════════
|
|
939
939
|
if (options.dashboard) {
|
|
940
940
|
if (isWindows) {
|
|
941
|
-
// Windows:
|
|
941
|
+
// Windows: dashboard opens in right pane, Claude continues in this (left) terminal
|
|
942
942
|
try {
|
|
943
943
|
(0, child_process_1.execSync)('where wt.exe', { encoding: 'utf-8', stdio: 'pipe' });
|
|
944
|
-
launchWithWindowsTerminal(
|
|
945
|
-
// Don't return —
|
|
944
|
+
launchWithWindowsTerminal();
|
|
945
|
+
// Don't return — fall through to launch Claude in this terminal
|
|
946
946
|
}
|
|
947
947
|
catch {
|
|
948
948
|
console.log(chalk_1.default.yellow(' Windows Terminal (wt.exe) not found.'));
|