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.
- package/.claude-plugin/plugin.json +1 -1
- package/README.ko.md +145 -145
- package/README.md +145 -145
- package/hub/pipeline/index.mjs +318 -318
- package/hub/schema.sql +146 -146
- package/hub/team/agent-map.json +2 -1
- package/hub/team/backend.mjs +3 -3
- package/hub/team/cli/commands/kill.mjs +37 -37
- package/hub/team/cli/commands/start/parse-args.mjs +4 -2
- package/hub/team/cli/commands/stop.mjs +31 -31
- package/hub/team/cli/commands/task.mjs +30 -30
- package/hub/team/cli/services/hub-client.mjs +208 -208
- package/hub/team/cli/services/native-control.mjs +4 -1
- package/hub/team/cli/services/runtime-mode.mjs +62 -62
- package/hub/team/cli/services/state-store.mjs +48 -48
- package/hub/team/codex-compat.mjs +78 -0
- package/hub/team/dashboard.mjs +274 -274
- package/hub/team/native.mjs +649 -649
- package/hub/team/pane.mjs +154 -150
- package/hub/team/psmux.mjs +1041 -1023
- package/hub/team/tui-viewer.mjs +2 -2
- package/hub/team/tui.mjs +12 -1
- package/hub/tools.mjs +554 -554
- package/hud/constants.mjs +3 -0
- package/package.json +1 -1
- package/scripts/claude-logged.ps1 +54 -0
- package/scripts/headless-guard.mjs +94 -7
- package/scripts/lib/mcp-filter.mjs +720 -720
- package/scripts/preflight-cache.mjs +137 -137
- package/scripts/remote-spawn.mjs +222 -0
- package/scripts/setup.mjs +84 -1
- package/scripts/tfx-gate-activate.mjs +89 -0
- package/scripts/tfx-route-post.mjs +17 -13
- package/scripts/tfx-route.sh +118 -46
- package/scripts/token-snapshot.mjs +575 -575
- package/skills/remote-spawn/SKILL.md +63 -0
- package/skills/tfx-auto/SKILL.md +1 -1
- package/skills/tfx-multi/SKILL.md +1 -1
package/hub/team/tui-viewer.mjs
CHANGED
|
@@ -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()
|
|
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()
|
|
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
|
-
|
|
58
|
+
const max = getMessageWidth();
|
|
59
|
+
return normalized.length > max ? `${normalized.slice(0, max - 3)}...` : normalized;
|
|
49
60
|
}
|
|
50
61
|
|
|
51
62
|
function cliColor(cli) {
|