triflux 7.1.2 → 7.1.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/hub/team/headless.mjs +8 -16
- package/package.json +1 -1
package/hub/team/headless.mjs
CHANGED
|
@@ -156,8 +156,8 @@ export async function runHeadless(sessionName, assignments, opts = {}) {
|
|
|
156
156
|
: `${brand.emoji} ${resolvedCli}-${i + 1}`;
|
|
157
157
|
|
|
158
158
|
let newPaneId;
|
|
159
|
-
if (i === 0
|
|
160
|
-
//
|
|
159
|
+
if (i === 0) {
|
|
160
|
+
// 첫 번째 워커: 빈 lead pane 사용
|
|
161
161
|
newPaneId = `${sessionName}:0.0`;
|
|
162
162
|
} else {
|
|
163
163
|
// 2번째+: split-window로 추가
|
|
@@ -188,16 +188,7 @@ export async function runHeadless(sessionName, assignments, opts = {}) {
|
|
|
188
188
|
// 모든 split 완료 후 레이아웃 한 번만 정렬 (깜빡임 방지)
|
|
189
189
|
try { psmuxExec(["select-layout", "-t", sessionName, "tiled"]); } catch { /* 무시 */ }
|
|
190
190
|
|
|
191
|
-
// v7.
|
|
192
|
-
if (dashboard) {
|
|
193
|
-
const viewerPath = join(import.meta.dirname, "tui-viewer.mjs").replace(/\\/g, "/");
|
|
194
|
-
const resultDir = RESULT_DIR.replace(/\\/g, "/");
|
|
195
|
-
const viewerCmd = `node ${viewerPath} --session ${sessionName}`;
|
|
196
|
-
try {
|
|
197
|
-
psmuxExec(["send-keys", "-t", `${sessionName}:0.0`, viewerCmd, "Enter"]);
|
|
198
|
-
psmuxExec(["select-pane", "-t", `${sessionName}:0.0`, "-T", "▲ dashboard"]);
|
|
199
|
-
} catch { /* 무시 */ }
|
|
200
|
-
}
|
|
191
|
+
// v7.1.3: psmux 내부 대시보드 pane 제거 — WT 스플릿에서 tui-viewer 직접 실행
|
|
201
192
|
|
|
202
193
|
} else {
|
|
203
194
|
// ─── 기존 모드: 모든 pane을 한 번에 생성 ───
|
|
@@ -522,16 +513,17 @@ export function attachDashboardTab(sessionName, workerCount = 2) {
|
|
|
522
513
|
try { execSync("where wt.exe", { stdio: "ignore" }); } catch { return false; }
|
|
523
514
|
ensureWtProfile(workerCount);
|
|
524
515
|
|
|
525
|
-
// v7.1.
|
|
516
|
+
// v7.1.3: 대시보드만 스플릿 (psmux attach 대신 tui-viewer 직접 실행)
|
|
517
|
+
// raw CLI 출력은 사용자에게 불필요 — 대시보드 로그만 표시
|
|
518
|
+
const viewerPath = join(import.meta.dirname, "tui-viewer.mjs").replace(/\\/g, "/");
|
|
526
519
|
try {
|
|
527
520
|
const child = spawn("wt.exe", [
|
|
528
|
-
"-w", "0", "sp", "-H", "-s", "0.
|
|
521
|
+
"-w", "0", "sp", "-H", "-s", "0.30",
|
|
529
522
|
"--profile", "triflux",
|
|
530
523
|
"--title", `▲ ${sessionName}`,
|
|
531
|
-
"--", "
|
|
524
|
+
"--", "node", viewerPath, "--session", sessionName,
|
|
532
525
|
], { detached: true, stdio: "ignore" });
|
|
533
526
|
child.unref();
|
|
534
|
-
// 포커스 복귀
|
|
535
527
|
try { spawn("wt.exe", ["-w", "0", "mf", "up"], { detached: true, stdio: "ignore" }).unref(); } catch {}
|
|
536
528
|
return true;
|
|
537
529
|
} catch { return false; }
|