triflux 2.0.1 → 2.0.3

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/README.ko.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  <p align="center">
12
12
  <strong>CLI 기반 멀티모델 오케스트레이터</strong><br>
13
- <em>Codex, Gemini, Claude에 작업을 라우팅 — 무료 티어로 있는 일에 토큰을 낭비하지 마세요</em>
13
+ <em>Codex, Gemini, Claude에 작업을 라우팅 — 적합한 모델에 작업을 라우팅하여 Claude 토큰을 절약하세요</em>
14
14
  </p>
15
15
 
16
16
  <p align="center">
@@ -41,7 +41,7 @@
41
41
 
42
42
  ## 왜 triflux인가?
43
43
 
44
- - **비용 지능형 라우팅** — Codex(무료)와 Gemini(무료)에 먼저 작업을 보내고, Claude 토큰은 최소화
44
+ - **비용 지능형 라우팅** — Codex와 Gemini에 먼저 작업을 보내고, Claude 토큰은 최소화
45
45
  - **DAG 기반 병렬 실행** — 복잡한 작업을 의존 그래프로 분해하여 동시 실행
46
46
  - **자동 트리아지** — Codex가 분류 + Opus가 분해, 수동 에이전트 선택 불필요
47
47
  - **16가지 에이전트** — executor부터 architect까지, 각각 최적의 CLI와 effort 레벨에 매핑
@@ -135,7 +135,7 @@ tfx doctor
135
135
  [Phase 1: 파싱] ─── 자동 모드 감지
136
136
  |
137
137
  v
138
- [Phase 2a: 분류] ─── Codex (무료)
138
+ [Phase 2a: 분류] ─── Codex
139
139
  │ 인증 리팩터링 → codex
140
140
  │ UI 개선 → gemini
141
141
  │ 테스트 추가 → claude
package/README.md CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  <p align="center">
12
12
  <strong>CLI-first multi-model orchestrator</strong><br>
13
- <em>Route tasks to Codex, Gemini, and Claude — don't pay tokens for what free tiers can do</em>
13
+ <em>Route tasks to Codex, Gemini, and Claude — route tasks to the right model, save Claude tokens</em>
14
14
  </p>
15
15
 
16
16
  <p align="center">
@@ -41,7 +41,7 @@
41
41
 
42
42
  ## Why triflux?
43
43
 
44
- - **Cost-intelligent routing** — Automatically routes tasks to Codex (free) and Gemini (free) before spending Claude tokens
44
+ - **Cost-intelligent routing** — Automatically routes tasks to Codex and Gemini before spending Claude tokens
45
45
  - **DAG-based parallel execution** — Decomposes complex tasks into dependency graphs and runs them concurrently
46
46
  - **Auto-triage** — Codex classifies + Opus decomposes, no manual agent selection needed
47
47
  - **16 agent types** — From executor to architect, each mapped to the optimal CLI and effort level
@@ -135,7 +135,7 @@ User: "/tfx-auto refactor auth + improve UI + add tests"
135
135
  [Phase 1: Parse] ─── Auto mode detected
136
136
  |
137
137
  v
138
- [Phase 2a: Classify] ─── Codex (free)
138
+ [Phase 2a: Classify] ─── Codex
139
139
  │ auth refactor → codex
140
140
  │ UI improvement → gemini
141
141
  │ test addition → claude
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triflux",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "CLI-first multi-model orchestrator for Claude Code — route tasks to Codex, Gemini, and Claude",
5
5
  "type": "module",
6
6
  "bin": {
package/scripts/setup.mjs CHANGED
@@ -151,6 +151,33 @@ for (const name of staleFiles) {
151
151
  }
152
152
  }
153
153
 
154
+ // ── Windows bash PATH 자동 설정 ──
155
+ // Codex/Gemini가 cmd에는 있지만 bash에서 못 찾는 문제 해결
156
+
157
+ if (process.platform === "win32") {
158
+ const npmBin = join(process.env.APPDATA || "", "npm");
159
+ if (existsSync(npmBin)) {
160
+ const bashrcPath = join(homedir(), ".bashrc");
161
+ const pathExport = 'export PATH="$PATH:$APPDATA/npm"';
162
+ let needsUpdate = true;
163
+
164
+ if (existsSync(bashrcPath)) {
165
+ const content = readFileSync(bashrcPath, "utf8");
166
+ if (content.includes("APPDATA/npm") || content.includes("APPDATA\\npm")) {
167
+ needsUpdate = false;
168
+ }
169
+ }
170
+
171
+ if (needsUpdate) {
172
+ const line = `\n# triflux: Codex/Gemini CLI를 bash에서 사용하기 위한 PATH 설정\n${pathExport}\n`;
173
+ try {
174
+ writeFileSync(bashrcPath, (existsSync(bashrcPath) ? readFileSync(bashrcPath, "utf8") : "") + line, "utf8");
175
+ synced++;
176
+ } catch {}
177
+ }
178
+ }
179
+ }
180
+
154
181
  // ── MCP 인벤토리 백그라운드 갱신 ──
155
182
 
156
183
  import { spawn } from "child_process";