triflux 7.3.2 → 7.5.0

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.
Files changed (38) hide show
  1. package/.claude-plugin/plugin.json +1 -1
  2. package/README.ko.md +145 -145
  3. package/README.md +145 -145
  4. package/hub/pipeline/index.mjs +318 -318
  5. package/hub/schema.sql +146 -146
  6. package/hub/team/agent-map.json +2 -1
  7. package/hub/team/backend.mjs +3 -3
  8. package/hub/team/cli/commands/kill.mjs +37 -37
  9. package/hub/team/cli/commands/start/parse-args.mjs +4 -2
  10. package/hub/team/cli/commands/stop.mjs +31 -31
  11. package/hub/team/cli/commands/task.mjs +30 -30
  12. package/hub/team/cli/services/hub-client.mjs +208 -208
  13. package/hub/team/cli/services/native-control.mjs +4 -1
  14. package/hub/team/cli/services/runtime-mode.mjs +62 -62
  15. package/hub/team/cli/services/state-store.mjs +48 -48
  16. package/hub/team/codex-compat.mjs +78 -0
  17. package/hub/team/dashboard.mjs +274 -274
  18. package/hub/team/native.mjs +649 -649
  19. package/hub/team/pane.mjs +154 -150
  20. package/hub/team/psmux.mjs +1041 -1023
  21. package/hub/team/tui-viewer.mjs +2 -2
  22. package/hub/team/tui.mjs +12 -1
  23. package/hub/tools.mjs +554 -554
  24. package/hud/constants.mjs +3 -0
  25. package/package.json +1 -1
  26. package/scripts/claude-logged.ps1 +54 -0
  27. package/scripts/headless-guard.mjs +94 -7
  28. package/scripts/lib/mcp-filter.mjs +720 -720
  29. package/scripts/preflight-cache.mjs +137 -137
  30. package/scripts/remote-spawn.mjs +222 -0
  31. package/scripts/setup.mjs +84 -1
  32. package/scripts/tfx-gate-activate.mjs +89 -0
  33. package/scripts/tfx-route-post.mjs +17 -13
  34. package/scripts/tfx-route.sh +118 -46
  35. package/scripts/token-snapshot.mjs +575 -575
  36. package/skills/remote-spawn/SKILL.md +63 -0
  37. package/skills/tfx-auto/SKILL.md +1 -1
  38. package/skills/tfx-multi/SKILL.md +1 -1
@@ -144,7 +144,7 @@ function poll() {
144
144
  if (resultSize > 10 || shellReturned) {
145
145
  workerState.set(paneName, { paneIdx: pane.index, done: true });
146
146
  const meaningful = lines.filter((l) => !(/^(PS\s|>|\$)/.test(l)) && !(/tokens?\s+used/i.test(l)));
147
- const verdict = meaningful.pop()?.slice(0, 80) || "completed";
147
+ const verdict = meaningful.pop() || "completed";
148
148
  tui.updateWorker(paneName, {
149
149
  cli,
150
150
  role: pane.title,
@@ -154,7 +154,7 @@ function poll() {
154
154
  });
155
155
  } else {
156
156
  const meaningful = lines.filter(l => !(/^(PS\s|>|\$)/.test(l)));
157
- const snap = meaningful.pop()?.slice(0, 60) || lastLine.slice(0, 60);
157
+ const snap = meaningful.pop() || lastLine;
158
158
  tui.updateWorker(paneName, { cli, role: pane.title, status: "running", snapshot: snap, elapsed });
159
159
  }
160
160
  }
package/hub/team/tui.mjs CHANGED
@@ -11,6 +11,9 @@ try {
11
11
  VERSION = require("../../package.json").version;
12
12
  } catch { /* fallback */ }
13
13
 
14
+ const PREFIX_WIDTH = 48;
15
+ const FALLBACK_COLUMNS = 80;
16
+
14
17
  /**
15
18
  * 로그 스트림 대시보드 생성 (append-only)
16
19
  * @param {object} [opts]
@@ -42,10 +45,18 @@ export function createLogDashboard(opts = {}) {
42
45
  return dim(`[${sec}s]`);
43
46
  }
44
47
 
48
+ function getMessageWidth() {
49
+ const columns = Number.isFinite(process.stdout.columns)
50
+ ? process.stdout.columns
51
+ : FALLBACK_COLUMNS;
52
+ return Math.max(3, columns - PREFIX_WIDTH);
53
+ }
54
+
45
55
  function oneLine(text, fallback = "n/a") {
46
56
  const normalized = String(text || "").replace(/\s+/g, " ").trim();
47
57
  if (!normalized) return fallback;
48
- return normalized.length > 160 ? `${normalized.slice(0, 157)}...` : normalized;
58
+ const max = getMessageWidth();
59
+ return normalized.length > max ? `${normalized.slice(0, max - 3)}...` : normalized;
49
60
  }
50
61
 
51
62
  function cliColor(cli) {