triflux 8.5.0 → 8.5.1
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/tui-viewer.mjs +4 -1
- package/hub/team/tui.mjs +7 -2
- package/package.json +1 -1
package/hub/team/tui-viewer.mjs
CHANGED
|
@@ -388,9 +388,12 @@ function ingest() {
|
|
|
388
388
|
}
|
|
389
389
|
|
|
390
390
|
// ── tui.updateWorker 래퍼 — raw internal data 누출 방지 ──
|
|
391
|
-
function pushToTui(paneName, cli,
|
|
391
|
+
function pushToTui(paneName, cli, paneTitle, update) {
|
|
392
392
|
// _leadAction은 tui에 노출하지 않음 (내부용)
|
|
393
393
|
const { _leadAction: _ignored, ...safeUpdate } = update;
|
|
394
|
+
// pane title에서 실제 역할만 추출: "⚪ codex (executor)" → "executor"
|
|
395
|
+
const roleMatch = paneTitle.match(/\(([^)]+)\)$/);
|
|
396
|
+
const role = roleMatch ? roleMatch[1] : "";
|
|
394
397
|
tui.updateWorker(paneName, { cli, role, ...safeUpdate });
|
|
395
398
|
}
|
|
396
399
|
|
package/hub/team/tui.mjs
CHANGED
|
@@ -228,7 +228,12 @@ function dedupeRole(role, name, cli) {
|
|
|
228
228
|
const esc = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
229
229
|
r = r.replace(new RegExp(esc(cli), "gi"), "").trim();
|
|
230
230
|
r = r.replace(new RegExp(esc(name), "gi"), "").trim();
|
|
231
|
-
|
|
231
|
+
// CLI indicator emojis 제거
|
|
232
|
+
r = r.replace(/[⚪⚫🔴🟠🟡🟢🔵🟣🟤⭕🔘]/g, "").trim();
|
|
233
|
+
// 빈 괄호 제거 + 중첩 괄호 정리
|
|
234
|
+
r = r.replace(/\(\s*\)/g, "").trim();
|
|
235
|
+
r = r.replace(/^\(([^()]+)\)$/, "$1").trim();
|
|
236
|
+
r = r.replace(/^\s*[•·\-]\s*/, "").trim();
|
|
232
237
|
return r;
|
|
233
238
|
}
|
|
234
239
|
|
|
@@ -813,7 +818,7 @@ export function createLogDashboard(opts = {}) {
|
|
|
813
818
|
const railLines = [];
|
|
814
819
|
for (const name of names) {
|
|
815
820
|
const card = buildWorkerRail(name, workers.get(name), {
|
|
816
|
-
width: railWidth
|
|
821
|
+
width: railWidth,
|
|
817
822
|
selected: name === selectedWorker,
|
|
818
823
|
focused: focus === "rail" && name === selectedWorker,
|
|
819
824
|
rawMode,
|