triflux 10.9.3 → 10.9.5
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/marketplace.json +3 -3
- package/README.ko.md +2 -2
- package/README.md +1 -1
- package/package.json +1 -1
- package/scripts/tfx-route-worker.mjs +6 -0
- package/scripts/tfx-route.sh +26 -2
|
@@ -8,8 +8,8 @@
|
|
|
8
8
|
"plugins": [
|
|
9
9
|
{
|
|
10
10
|
"name": "triflux",
|
|
11
|
-
"description": "CLI
|
|
12
|
-
"version": "10.9.
|
|
11
|
+
"description": "Tri-CLI orchestrator for Claude Code. Routes tasks across Claude + Codex + Gemini with consensus intelligence, natural language routing, 42 skills, and cross-model review.",
|
|
12
|
+
"version": "10.9.5",
|
|
13
13
|
"author": {
|
|
14
14
|
"name": "tellang"
|
|
15
15
|
},
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
]
|
|
31
31
|
}
|
|
32
32
|
],
|
|
33
|
-
"version": "10.
|
|
33
|
+
"version": "10.9.5"
|
|
34
34
|
}
|
package/README.ko.md
CHANGED
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
|
|
38
38
|
## 빠른 시작
|
|
39
39
|
|
|
40
|
-
**Claude Code** (권장)
|
|
40
|
+
**Claude Code** (권장) — Claude Code 세션 안에서 실행:
|
|
41
41
|
|
|
42
42
|
```
|
|
43
43
|
/plugin marketplace add tellang/triflux
|
|
@@ -287,7 +287,7 @@ graph TD
|
|
|
287
287
|
|
|
288
288
|
## 빠른 시작
|
|
289
289
|
|
|
290
|
-
**Claude Code** (권장)
|
|
290
|
+
**Claude Code** (권장) — Claude Code 세션 안에서 실행:
|
|
291
291
|
|
|
292
292
|
```
|
|
293
293
|
/plugin marketplace add tellang/triflux
|
package/README.md
CHANGED
package/package.json
CHANGED
|
@@ -51,6 +51,7 @@ if (!createWorker) {
|
|
|
51
51
|
function parseArgs(argv) {
|
|
52
52
|
const args = {
|
|
53
53
|
allowedMcpServerNames: [],
|
|
54
|
+
extraArgs: [],
|
|
54
55
|
mcpConfig: [],
|
|
55
56
|
};
|
|
56
57
|
|
|
@@ -94,6 +95,10 @@ function parseArgs(argv) {
|
|
|
94
95
|
args.allowedMcpServerNames.push(next);
|
|
95
96
|
index += 1;
|
|
96
97
|
break;
|
|
98
|
+
case "--extra-arg":
|
|
99
|
+
args.extraArgs.push(next);
|
|
100
|
+
index += 1;
|
|
101
|
+
break;
|
|
97
102
|
case "--mcp-config":
|
|
98
103
|
args.mcpConfig.push(next);
|
|
99
104
|
index += 1;
|
|
@@ -202,6 +207,7 @@ const worker = createWorker(args.type, {
|
|
|
202
207
|
permissionMode: args.permissionMode,
|
|
203
208
|
allowDangerouslySkipPermissions: args.allowDangerouslySkipPermissions,
|
|
204
209
|
allowedMcpServerNames: args.allowedMcpServerNames,
|
|
210
|
+
extraArgs: args.extraArgs,
|
|
205
211
|
mcpConfig:
|
|
206
212
|
args.type === "claude" && args.mcpConfig.length === 0
|
|
207
213
|
? resolveDefaultMcpConfig(args.cwd || process.cwd())
|
package/scripts/tfx-route.sh
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env bash
|
|
2
|
-
# tfx-route.sh v2.
|
|
2
|
+
# tfx-route.sh v2.6 — CLI 라우팅 래퍼 (triflux)
|
|
3
3
|
#
|
|
4
4
|
# v1.x: cli-route.sh (jq+python3+node 혼재, 동기 후처리 ~1s)
|
|
5
5
|
# v2.0: tfx-route.sh 리네임
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
# - Gemini health check 지수 백오프 (30×1s → 5×exp)
|
|
10
10
|
# - 컨텍스트 파일 5번째 인자 지원
|
|
11
11
|
#
|
|
12
|
-
VERSION="2.
|
|
12
|
+
VERSION="2.6"
|
|
13
13
|
#
|
|
14
14
|
# 사용법:
|
|
15
15
|
# tfx-route.sh <agent_type> <prompt> [mcp_profile] [timeout_sec] [context_file]
|
|
@@ -220,6 +220,9 @@ CODEX_BIN="${CODEX_BIN:-$(command -v codex 2>/dev/null || echo codex)}"
|
|
|
220
220
|
GEMINI_BIN="${GEMINI_BIN:-$(command -v gemini 2>/dev/null || echo gemini)}"
|
|
221
221
|
CLAUDE_BIN="${CLAUDE_BIN:-$(command -v claude 2>/dev/null || echo claude)}"
|
|
222
222
|
GEMINI_BIN_ARGS_JSON="${GEMINI_BIN_ARGS_JSON:-[]}"
|
|
223
|
+
# ── Gemini 확장 플래그 (issue #64) ──
|
|
224
|
+
TFX_GEMINI_EXTENSIONS="${TFX_GEMINI_EXTENSIONS:-}"
|
|
225
|
+
TFX_GEMINI_FLAGS="${TFX_GEMINI_FLAGS:-}"
|
|
223
226
|
CLAUDE_BIN_ARGS_JSON="${CLAUDE_BIN_ARGS_JSON:-[]}"
|
|
224
227
|
|
|
225
228
|
# ── Gemini 프로필 경로 (Codex config.toml 대칭) ──
|
|
@@ -1760,6 +1763,27 @@ FALLBACK_EOF
|
|
|
1760
1763
|
done
|
|
1761
1764
|
fi
|
|
1762
1765
|
|
|
1766
|
+
# ── Gemini extensions (-e) 주입 (issue #64) ──
|
|
1767
|
+
if [[ -n "$TFX_GEMINI_EXTENSIONS" ]]; then
|
|
1768
|
+
local ext
|
|
1769
|
+
IFS="," read -ra _gemini_exts <<< "$TFX_GEMINI_EXTENSIONS"
|
|
1770
|
+
for ext in "${_gemini_exts[@]}"; do
|
|
1771
|
+
ext=$(echo "$ext" | xargs) # trim whitespace
|
|
1772
|
+
[[ -n "$ext" ]] && gemini_worker_args+=("--extra-arg" "-e" "--extra-arg" "$ext")
|
|
1773
|
+
done
|
|
1774
|
+
echo "[tfx-route] Gemini extensions: ${TFX_GEMINI_EXTENSIONS}" >&2
|
|
1775
|
+
fi
|
|
1776
|
+
|
|
1777
|
+
# ── Gemini 추가 플래그 주입 (issue #64) ──
|
|
1778
|
+
if [[ -n "$TFX_GEMINI_FLAGS" ]]; then
|
|
1779
|
+
local flag
|
|
1780
|
+
read -ra _gemini_flags <<< "$TFX_GEMINI_FLAGS"
|
|
1781
|
+
for flag in "${_gemini_flags[@]}"; do
|
|
1782
|
+
[[ -n "$flag" ]] && gemini_worker_args+=("--extra-arg" "$flag")
|
|
1783
|
+
done
|
|
1784
|
+
echo "[tfx-route] Gemini extra flags: ${TFX_GEMINI_FLAGS}" >&2
|
|
1785
|
+
fi
|
|
1786
|
+
|
|
1763
1787
|
run_stream_worker "gemini" "$FULL_PROMPT" "$use_tee" "${gemini_worker_args[@]}" || exit_code=$?
|
|
1764
1788
|
if [[ "$exit_code" -ne 0 && "$exit_code" -ne 124 ]]; then
|
|
1765
1789
|
echo "[tfx-route] Gemini stream wrapper 실패(exit=${exit_code}). claude-native fallback." >&2
|