triflux 9.7.12 → 9.7.13

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.
@@ -9,7 +9,7 @@
9
9
  {
10
10
  "name": "triflux",
11
11
  "description": "CLI-first multi-model orchestrator for Claude Code. Routes tasks to Codex, Gemini, and Claude CLIs with automatic triage, DAG-based parallel execution, headless psmux sessions, and cost-optimized routing. Includes 41 skills, HUD status bar, hook orchestrator, and shell-based CLI routing.",
12
- "version": "9.7.12",
12
+ "version": "9.7.13",
13
13
  "author": {
14
14
  "name": "tellang"
15
15
  },
@@ -30,5 +30,5 @@
30
30
  ]
31
31
  }
32
32
  ],
33
- "version": "9.7.12"
33
+ "version": "9.7.13"
34
34
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triflux",
3
- "version": "9.7.12",
3
+ "version": "9.7.13",
4
4
  "description": "CLI-first multi-model orchestrator for Claude Code — route tasks to Codex, Gemini, and Claude",
5
5
  "author": {
6
6
  "name": "tellang"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triflux",
3
- "version": "9.7.12",
3
+ "version": "9.7.13",
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": {
@@ -890,18 +890,25 @@ TFX_CLI_MODE="${TFX_CLI_MODE:-auto}"
890
890
  TFX_NO_CLAUDE_NATIVE="${TFX_NO_CLAUDE_NATIVE:-0}"
891
891
  TFX_VERIFIER_OVERRIDE="${TFX_VERIFIER_OVERRIDE:-auto}"
892
892
  TFX_CODEX_TRANSPORT="${TFX_CODEX_TRANSPORT:-exec}"
893
- # Codex 요금제 자동 감지 (preflight 캐시 auth.json JWT)
894
- # 환경변수 명시 설정 우선, 미설정 캐시에서 읽기, 캐시도 없으면 pro
895
- if [[ -z "${TFX_CODEX_PLAN:-}" ]]; then
896
- _detected_plan=$(node -e '
893
+ # Preflight 캐시 일괄 로드 CLI/Hub 가용성 + Codex 요금제를 환경변수로 내보냄
894
+ # 하위 프로세스(스킬 포함)가 TFX_CODEX_OK, TFX_GEMINI_OK, TFX_HUB_OK로 즉시 참조 가능
895
+ if [[ -z "${TFX_PREFLIGHT_LOADED:-}" ]]; then
896
+ eval "$(node -e '
897
897
  try {
898
898
  const c = JSON.parse(require("fs").readFileSync(require("path").join(require("os").homedir(),".claude","cache","tfx-preflight.json"),"utf8"));
899
+ const lines = [];
900
+ lines.push("export TFX_CODEX_OK=" + (c?.codex?.ok ? "1" : "0"));
901
+ lines.push("export TFX_GEMINI_OK=" + (c?.gemini?.ok ? "1" : "0"));
902
+ lines.push("export TFX_HUB_OK=" + (c?.hub?.ok ? "1" : "0"));
899
903
  const p = c?.codex_plan?.plan;
900
- if (p && p !== "unknown" && p !== "api") { process.stdout.write(p); }
901
- } catch {}
902
- ' 2>/dev/null)
903
- TFX_CODEX_PLAN="${_detected_plan:-pro}"
904
- unset _detected_plan
904
+ if (p && p !== "unknown" && p !== "api") lines.push("export TFX_CODEX_PLAN=" + p);
905
+ const agents = c?.available_agents;
906
+ if (Array.isArray(agents)) lines.push("export TFX_AVAILABLE_AGENTS=" + agents.join(","));
907
+ lines.push("export TFX_PREFLIGHT_LOADED=1");
908
+ process.stdout.write(lines.join("\n") + "\n");
909
+ } catch { process.stdout.write("export TFX_PREFLIGHT_LOADED=1\n"); }
910
+ ' 2>/dev/null)"
911
+ TFX_CODEX_PLAN="${TFX_CODEX_PLAN:-pro}"
905
912
  fi
906
913
  TFX_WORKER_INDEX="${TFX_WORKER_INDEX:-}"
907
914
  TFX_SEARCH_TOOL="${TFX_SEARCH_TOOL:-}"