triflux 7.1.1 → 7.1.2

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.
@@ -522,44 +522,19 @@ export function attachDashboardTab(sessionName, workerCount = 2) {
522
522
  try { execSync("where wt.exe", { stdio: "ignore" }); } catch { return false; }
523
523
  ensureWtProfile(workerCount);
524
524
 
525
- // v7.1: 같은 WT 창에서 가로 스플릿 ( 대신)
526
- // 포커스 탈취가 최소화되고 Claude Code와 나란히 보임
527
- if (process.env.WT_SESSION) {
528
- try {
529
- const child = spawn("wt.exe", [
530
- "-w", "0", "sp", "-H", "-s", "0.35",
531
- "--profile", "triflux",
532
- "--title", `▲ ${sessionName}`,
533
- "--", "psmux", "attach", "-t", sessionName,
534
- ], { detached: true, stdio: "ignore" });
535
- child.unref();
536
- // 스플릿 후 원래 pane으로 포커스 복귀
537
- try { spawn("wt.exe", ["-w", "0", "mf", "up"], { detached: true, stdio: "ignore" }).unref(); } catch {}
538
- return true;
539
- } catch { /* fallthrough to tab */ }
540
- }
541
-
542
- // WT 세션 외부 → 새 탭 fallback
525
+ // v7.1.2: 항상 가로 스플릿 (Claude Code 아래 35%)
543
526
  try {
544
527
  const child = spawn("wt.exe", [
545
- "-w", "0", "nt",
528
+ "-w", "0", "sp", "-H", "-s", "0.35",
546
529
  "--profile", "triflux",
547
530
  "--title", `▲ ${sessionName}`,
548
531
  "--", "psmux", "attach", "-t", sessionName,
549
532
  ], { detached: true, stdio: "ignore" });
550
533
  child.unref();
534
+ // 포커스 복귀
535
+ try { spawn("wt.exe", ["-w", "0", "mf", "up"], { detached: true, stdio: "ignore" }).unref(); } catch {}
536
+ return true;
551
537
  } catch { return false; }
552
-
553
- const prevTabScript = "Start-Sleep -Milliseconds 150; Add-Type -AssemblyName System.Windows.Forms; [System.Windows.Forms.SendKeys]::SendWait('^+{TAB}')";
554
- for (const shell of ["pwsh.exe", "powershell.exe"]) {
555
- try {
556
- spawn(shell, ["-NoProfile", "-NonInteractive", "-Command", prevTabScript], {
557
- detached: true, stdio: "ignore",
558
- }).unref();
559
- break;
560
- } catch { /* 다음 shell */ }
561
- }
562
- return true;
563
538
  }
564
539
 
565
540
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triflux",
3
- "version": "7.1.1",
3
+ "version": "7.1.2",
4
4
  "description": "CLI-first multi-model orchestrator for Claude Code — route tasks to Codex, Gemini, and Claude",
5
5
  "type": "module",
6
6
  "bin": {