triflux 2.5.1 → 3.1.0-dev.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.
@@ -27,7 +27,7 @@ argument-hint: "[--fix|--reset]"
27
27
 
28
28
  `triflux doctor`를 실행하여 다음을 진단합니다:
29
29
 
30
- - cli-route.sh 설치 상태
30
+ - tfx-route.sh 설치 상태
31
31
  - HUD 설치 및 설정 상태
32
32
  - Codex/Gemini/Claude CLI 경로 (크로스 셸)
33
33
  - 스킬 설치 상태
@@ -39,7 +39,7 @@ argument-hint: "[--fix|--reset]"
39
39
 
40
40
  진단 전에 자동 수정을 시도합니다:
41
41
 
42
- 1. cli-route.sh, HUD, 스킬 파일 재동기화
42
+ 1. tfx-route.sh, HUD, 스킬 파일 재동기화
43
43
  2. 에러/손상된 캐시 파일 정리
44
44
  3. 수정 완료 후 전체 진단 실행 → 결과 보고
45
45
 
@@ -58,7 +58,7 @@ argument-hint: "\"작업 설명\" | N:gemini \"작업 설명\""
58
58
 
59
59
  1. **Phase 3 CLI 실행 시** `TFX_CLI_MODE=gemini`을 환경변수로 전달:
60
60
  ```bash
61
- TFX_CLI_MODE=gemini bash ~/.claude/scripts/cli-route.sh {agent} '{prompt}' {mcp_profile}
61
+ TFX_CLI_MODE=gemini bash ~/.claude/scripts/tfx-route.sh {agent} '{prompt}' {mcp_profile}
62
62
  ```
63
63
 
64
64
  2. **Phase 2 트리아지에서** codex 분류 결과를 gemini로 강제 변환:
@@ -0,0 +1,83 @@
1
+ # tfx-hub — MCP 메시지 버스 관리
2
+
3
+ > CLI 에이전트(Codex/Gemini/Claude) 간 실시간 메시지 허브를 관리합니다.
4
+ > **tfx-auto와 완전 독립** — 별도 스킬로 운영됩니다.
5
+
6
+ ## 사용법
7
+
8
+ ```
9
+ /tfx-hub start ← 허브 데몬 시작 (기본 포트 27888)
10
+ /tfx-hub start --port 28000 ← 커스텀 포트
11
+ /tfx-hub stop ← 허브 중지
12
+ /tfx-hub status ← 상태/메트릭 확인
13
+ ```
14
+
15
+ ## 커맨드
16
+
17
+ ### start — 허브 시작
18
+
19
+ ```bash
20
+ Bash("node hub/server.mjs", run_in_background=true)
21
+ ```
22
+
23
+ - Streamable HTTP MCP 서버를 `http://127.0.0.1:27888/mcp` 에서 시작
24
+ - SQLite WAL DB: `~/.claude/cache/tfx-hub/state.db`
25
+ - PID 파일: `~/.claude/cache/tfx-hub/hub.pid`
26
+ - 환경변수: `TFX_HUB_PORT` (포트), `TFX_HUB_DB` (DB 경로)
27
+
28
+ ### stop — 허브 중지
29
+
30
+ ```bash
31
+ # PID 파일에서 프로세스 ID 읽어서 종료
32
+ Bash("node -e \"
33
+ const fs = require('fs');
34
+ const path = require('path');
35
+ const pidFile = path.join(require('os').homedir(), '.claude/cache/tfx-hub/hub.pid');
36
+ if (fs.existsSync(pidFile)) {
37
+ const info = JSON.parse(fs.readFileSync(pidFile, 'utf8'));
38
+ process.kill(info.pid, 'SIGTERM');
39
+ console.log('tfx-hub 종료 (PID ' + info.pid + ')');
40
+ } else {
41
+ console.log('tfx-hub 미실행');
42
+ }
43
+ \"")
44
+ ```
45
+
46
+ ### status — 상태 확인
47
+
48
+ ```bash
49
+ # HTTP 상태 엔드포인트 조회
50
+ Bash("curl -s http://127.0.0.1:27888/status 2>/dev/null || echo '{\"error\":\"hub 미실행\"}'")
51
+ ```
52
+
53
+ ## 각 CLI 등록 방법
54
+
55
+ 허브 시작 후 각 CLI에 MCP 서버로 등록:
56
+
57
+ ```bash
58
+ # Codex
59
+ codex mcp add tfx-hub --url http://127.0.0.1:27888/mcp
60
+
61
+ # Gemini (settings.json)
62
+ # mcpServers.tfx-hub.url = "http://127.0.0.1:27888/mcp"
63
+
64
+ # Claude
65
+ claude mcp add --transport http tfx-hub http://127.0.0.1:27888/mcp
66
+ ```
67
+
68
+ ## MCP 도구 (8개)
69
+
70
+ | 도구 | 설명 |
71
+ |------|------|
72
+ | `register` | 에이전트 등록 + lease 발급 |
73
+ | `status` | 허브/에이전트/큐 상태 조회 |
74
+ | `publish` | 이벤트/응답 메시지 발행 |
75
+ | `ask` | 다른 에이전트에게 질문 (request/reply) |
76
+ | `poll_messages` | 수신함에서 메시지 폴링 |
77
+ | `handoff` | 작업 인계 |
78
+ | `request_human_input` | 사용자 입력 요청 (CAPTCHA/승인) |
79
+ | `submit_human_input` | 사용자 입력 응답 |
80
+
81
+ ## 상태
82
+
83
+ **dev 전용** — 로컬 테스트 목적. 프로덕션 배포 전 안정화 필요.
@@ -74,7 +74,7 @@ Bash("triflux doctor")
74
74
 
75
75
  | 항목 | 상태 |
76
76
  |------|------|
77
- | cli-route.sh | ✅ v1.5 |
77
+ | tfx-route.sh | ✅ v2.0 |
78
78
  | HUD (hud-qos-status.mjs) | ✅ v1.7 |
79
79
  | HUD 설정 (settings.json) | ✅ statusLine 등록됨 |
80
80
  | Codex CLI | ✅ / ⚠️ 미설치 (선택) |