triflux 8.11.0 → 8.11.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.
@@ -323,12 +323,15 @@ function escapeRegExp(value) {
323
323
 
324
324
  function psmux(args, opts = {}) {
325
325
  const normalizedArgs = normalizePsmuxArgs(args);
326
+ // PSMUX_SESSION 제거 — 기존 psmux 세션 내에서 호출 시 중첩 세션 차단 방지
327
+ const { PSMUX_SESSION: _, ...cleanEnv } = process.env;
326
328
  try {
327
329
  const result = childProcess.execFileSync(PSMUX_BIN, normalizedArgs, {
328
330
  encoding: "utf8",
329
331
  timeout: PSMUX_TIMEOUT_MS,
330
332
  stdio: ["pipe", "pipe", "pipe"],
331
333
  windowsHide: true,
334
+ env: cleanEnv,
332
335
  ...opts,
333
336
  });
334
337
  return result != null ? String(result).trim() : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "triflux",
3
- "version": "8.11.0",
3
+ "version": "8.11.1",
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": {
@@ -153,6 +153,11 @@ function deny(reason) {
153
153
  }
154
154
 
155
155
  async function main() {
156
+ // P0: TFX_ALLOW_DIRECT_CLI 환경변수 바이패스 — psmux 세션 생성 불가 시 수동 활성화
157
+ if (process.env.TFX_ALLOW_DIRECT_CLI === "1") {
158
+ nudge("[headless-guard] direct CLI mode (TFX_ALLOW_DIRECT_CLI=1)");
159
+ }
160
+
156
161
  // psmux 미설치 → 전부 통과
157
162
  if (!isPsmuxInstalled()) process.exit(0);
158
163