triflux 10.9.25 → 10.9.27
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.
|
@@ -15,7 +15,7 @@ const REQUIRED_TOOLS = ["codex", "codex-reply"];
|
|
|
15
15
|
|
|
16
16
|
export { CODEX_MCP_EXECUTION_EXIT_CODE, CODEX_MCP_TRANSPORT_EXIT_CODE };
|
|
17
17
|
export const DEFAULT_CODEX_MCP_TIMEOUT_MS = 10 * 60 * 1000;
|
|
18
|
-
export const DEFAULT_CODEX_MCP_BOOTSTRAP_TIMEOUT_MS =
|
|
18
|
+
export const DEFAULT_CODEX_MCP_BOOTSTRAP_TIMEOUT_MS = 120 * 1000;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
21
|
* Codex MCP transport/bootstrap 계층 오류
|
|
@@ -21,7 +21,7 @@ function toStringList(value) {
|
|
|
21
21
|
* 빈 문자열은 ""로, 특수문자 포함 시 큰따옴표로 감싼다.
|
|
22
22
|
*/
|
|
23
23
|
function quoteWindowsCmdArg(value) {
|
|
24
|
-
const raw = String(value ?? "");
|
|
24
|
+
const raw = String(value ?? "").replace(/[\r\n]/g, " ");
|
|
25
25
|
if (raw.length === 0) return '""';
|
|
26
26
|
if (!/[\s"()^&|<>%!]/.test(raw)) return raw;
|
|
27
27
|
const escaped = raw
|
|
@@ -55,7 +55,7 @@ function buildSpawnSpec(command, args) {
|
|
|
55
55
|
|
|
56
56
|
if (/\.(cmd|bat)$/i.test(resolved)) {
|
|
57
57
|
const line = [resolved, ...args].map(quoteWindowsCmdArg).join(" ");
|
|
58
|
-
return { command: "cmd.exe", args: ["/d", "/s", "/c", line], shell: false };
|
|
58
|
+
return { command: "cmd.exe", args: ["/d", "/s", "/v:off", "/c", line], shell: false };
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
return { command: resolved, args, shell: false };
|
package/package.json
CHANGED
|
@@ -7,9 +7,9 @@ import { fileURLToPath, pathToFileURL } from "node:url";
|
|
|
7
7
|
|
|
8
8
|
const SCRIPT_DIR = dirname(fileURLToPath(import.meta.url));
|
|
9
9
|
const FACTORY_CANDIDATES = [
|
|
10
|
-
resolve(process.cwd(), "hub/workers/factory.mjs"),
|
|
11
10
|
resolve(SCRIPT_DIR, "../hub/workers/factory.mjs"),
|
|
12
11
|
resolve(SCRIPT_DIR, "./hub/workers/factory.mjs"),
|
|
12
|
+
resolve(process.cwd(), "hub/workers/factory.mjs"),
|
|
13
13
|
];
|
|
14
14
|
|
|
15
15
|
// MCP transport 실패 시 tfx-route.sh가 exec fallback을 수행할 수 있도록
|
package/scripts/tfx-route.sh
CHANGED
|
@@ -1716,12 +1716,8 @@ FALLBACK_EOF
|
|
|
1716
1716
|
if [[ "$exit_code" -eq 0 ]]; then
|
|
1717
1717
|
codex_transport_effective="mcp"
|
|
1718
1718
|
elif [[ "$exit_code" -eq "$CODEX_MCP_TRANSPORT_EXIT_CODE" && "$TFX_CODEX_TRANSPORT" == "auto" ]]; then
|
|
1719
|
-
echo "[tfx-route] Codex MCP bootstrap 실패(exit=${exit_code}).
|
|
1720
|
-
|
|
1721
|
-
: > "$STDERR_LOG"
|
|
1722
|
-
exit_code=0
|
|
1723
|
-
run_codex_exec "$FULL_PROMPT" "$use_tee" || exit_code=$?
|
|
1724
|
-
codex_transport_effective="exec-fallback"
|
|
1719
|
+
echo "[tfx-route] Codex MCP bootstrap 실패(exit=${exit_code}). exec fallback 비활성(stdin 블록 위험)." >&2
|
|
1720
|
+
codex_transport_effective="mcp-failed"
|
|
1725
1721
|
else
|
|
1726
1722
|
codex_transport_effective="mcp"
|
|
1727
1723
|
fi
|