@triflux/remote 10.89.0 → 10.89.2
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/hub/team/codex-queue.mjs
CHANGED
|
@@ -170,7 +170,12 @@ export async function countCodexTuiInCwd(cwd, { execFn = execFileAsync } = {}) {
|
|
|
170
170
|
);
|
|
171
171
|
return String(stdout)
|
|
172
172
|
.split("\n")
|
|
173
|
-
.filter(
|
|
173
|
+
.filter(
|
|
174
|
+
(line) =>
|
|
175
|
+
line.trim() &&
|
|
176
|
+
!/\bapp-server\b/.test(line) &&
|
|
177
|
+
!/^\s*(?:\S*\/)?codex-code-mode-host(?:\s|$)/.test(line),
|
|
178
|
+
).length;
|
|
174
179
|
} catch {
|
|
175
180
|
return null;
|
|
176
181
|
}
|
package/hub/team/native-peer.mjs
CHANGED
|
@@ -88,7 +88,13 @@ export function validateCodexTarget(thread, id) {
|
|
|
88
88
|
if (
|
|
89
89
|
thread?.id !== id ||
|
|
90
90
|
thread.canAcceptDirectInput !== true ||
|
|
91
|
-
|
|
91
|
+
!(
|
|
92
|
+
thread.threadSource === "user" ||
|
|
93
|
+
(thread.threadSource === null &&
|
|
94
|
+
thread.parentThreadId === null &&
|
|
95
|
+
thread.agentRole === null &&
|
|
96
|
+
(thread.source === "cli" || thread.source === "vscode"))
|
|
97
|
+
) ||
|
|
92
98
|
thread.parentThreadId ||
|
|
93
99
|
thread.agentRole
|
|
94
100
|
)
|